[
https://issues.apache.org/jira/browse/AVRO-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-141:
------------------------------
Resolution: Fixed
Fix Version/s: 1.2.1
Status: Resolved (was: Patch Available)
I just committed this. Thanks, Isabel!
> 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
> Fix For: 1.2.1
>
> 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.