update object is null logic