avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Zeyliger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-615) Explain NullPointerException
Date Mon, 16 Aug 2010 17:11:16 GMT

    [ https://issues.apache.org/jira/browse/AVRO-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898991#action_12898991

Philip Zeyliger commented on AVRO-615:

I think it would be great if we threw an AvroRuntimeException (or subclass thereof) instead
of NPE, and provided as much detail as possible.  I encourage you to provide a patch (with
tests) to the DatumWriter.

> Explain NullPointerException
> ----------------------------
>                 Key: AVRO-615
>                 URL: https://issues.apache.org/jira/browse/AVRO-615
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.3.3
>            Reporter: John Kristian
> Please provide more information in the exception that results from attempting to write
a null value that the schema doesn't allow.  For example, include the names of the type, the
field and the enclosing record type.

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

View raw message