Catch null on de/serialization