catch null objects and convert them to objects