Fix to null-applicable-to-primitive-type check.