Null to non-null data comparison corrected