Description
ReflectData.AllowNulls will always create nullable types, even if the reflected object has primitive fields. When assigning a null to a primitive field, Java always throws a NullPointerException. I think the right thing to do is to allow nulls for any Object and return required schemas for primitive types.
Attachments
Attachments
Issue Links
- is duplicated by
-
AVRO-1588 ReflectData.AllowNull incorrectly handles primitive types.
- Resolved