catch null objects in all cicumstances