avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isabel Drost (JIRA)" <j...@apache.org>
Subject [jira] Created: (AVRO-141) NullPointerException when serializing records that are null (affects ReflectData.AllowNull)
Date Tue, 13 Oct 2009 07:41:31 GMT
NullPointerException when serializing records that are null (affects ReflectData.AllowNull)
-------------------------------------------------------------------------------------------

                 Key: AVRO-141
                 URL: https://issues.apache.org/jira/browse/AVRO-141
             Project: Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.2.0
            Reporter: Isabel Drost


Setup: Generate a schema from an existing type and try to serialize an object from that type.
The type itself should have a member x that itself is serialized as record. The type x may
contain simpler members e.g. ints. If x is left equal to null, a NullPointerException is thrown
when trying to serialize the object to json.

Test to reproduce the problem and my tiny fix attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message