avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Graham (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-844) Better null checking in GenericData
Date Thu, 30 Jun 2011 23:05:28 GMT

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

Bill Graham updated AVRO-844:
-----------------------------

    Attachment: AVRO-844_2.patch

Good call, that makes more sense. Here's patch #2 with exceptions thrown for both getField(..)
and getFields() on an empty schema. 

> Better null checking in GenericData
> -----------------------------------
>
>                 Key: AVRO-844
>                 URL: https://issues.apache.org/jira/browse/AVRO-844
>             Project: Avro
>          Issue Type: Improvement
>    Affects Versions: 1.5.1
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: AVRO-844_2.patch, AVRO-844_2.patch, AVRO_844-1.patch
>
>
> A few places where NPEs can be handled better:
> * When adding an invalid field to a {{GenericData.Record}} object, an NPE gets throw.
> * When creating a {{GenericData.Record}} object with an invalid Schema an NPE is throw.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message