avro-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/AVRO-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Doug Cutting reassigned AVRO-141:
---------------------------------

    Assignee: Isabel Drost

This looks good to me.  I intend to commit it tomorrow.

> 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
>            Assignee: Isabel Drost
>         Attachments: AVRO-141.patch
>
>
> 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