protect against fields with null values