Jonathan Leech created AVRO-2103:
------------------------------------

             Summary: ReflectData.AllowNull should allow nulls within a 
Collection or array
                 Key: AVRO-2103
                 URL: https://issues.apache.org/jira/browse/AVRO-2103
             Project: Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.8.2
            Reporter: Jonathan Leech
            Priority: Minor


Either by default, or as an option, schemas generated by ReflectData.AllowNull 
should allow null elements in Collection or arrays. The current behavior allows 
the attribute itself to be null, but not contain elements which are null. For 
example a List<String> containing {null, "foo", "bar"} causes Avro to throw a 
NullPointerException upon serialization via the schema generated with 
ReflectData.AllowNull.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to