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

Alparslan Avcı updated GORA-94:
-------------------------------

    Attachment: GORA-94v10.patch

Hi,
When we want to call a 'map' type field (either null or empty map as default), 
field value comes null (not with an empty map object). This can cause NPE in 
many points like serializations. I've attached a patch that fixes this issue by 
using builder methods in new instance creation. I've also had to change 
record.vm and re-create the avro-generated example classes.
[~lewismc], I think this can be more appropriate way of creating objects with 
default values. Would you please comment about this patch?

> Upgrade to Apache Avro 1.7.x
> ----------------------------
>
>                 Key: GORA-94
>                 URL: https://issues.apache.org/jira/browse/GORA-94
>             Project: Apache Gora
>          Issue Type: Improvement
>          Components: build process, storage
>    Affects Versions: 0.2
>            Reporter: Lewis John McGibbney
>            Assignee: Ed Kohlwey
>             Fix For: 0.4
>
>         Attachments: GORA-94-v2.patch, GORA-94-v3.patch, GORA-94-v4.patch, 
> GORA-94.patch, GORA-94v10.patch, GORA-94v6.diff, GORA-94v7.patch, 
> GORA-94v8.patch, GORA-94v9.patch, GORA_94v5.patch
>
>
> I am not sure what this involves as of yet but I have a small feeling that 
> it's going to be some reasonably major work...  



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to