You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jonathan Leech (JIRA)" <ji...@apache.org> on 2017/11/01 18:07:00 UTC

[jira] [Created] (AVRO-2103) ReflectData.AllowNull should allow nulls within a Collection or array

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)