You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Joseph Adler (JIRA)" <ji...@apache.org> on 2012/10/29 22:02:13 UTC
[jira] [Created] (CRUNCH-103) null pointer exception with null avro
collections
Joseph Adler created CRUNCH-103:
-----------------------------------
Summary: null pointer exception with null avro collections
Key: CRUNCH-103
URL: https://issues.apache.org/jira/browse/CRUNCH-103
Project: Crunch
Issue Type: Bug
Components: Core
Affects Versions: 0.4.0
Reporter: Joseph Adler
Assignee: Josh Wills
Fix For: 0.4.0
If you attempt to create an avro record containing a collection, you may get a null pointer exception if the collection is null.
For example, suppose you had a ptype of Avros.tableOf(Avros.ints(), Avros.collections(Avros.ints())). When emitting the output records, you would get a null pointer exception if you emitted Pair.of(1,(Collection<Integer>)null)
(I'll submit a patch to fix)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CRUNCH-103) null pointer exception with null
avro collections
Posted by "Josh Wills (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CRUNCH-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Wills resolved CRUNCH-103.
-------------------------------
Resolution: Fixed
Committed-- Thanks Joe!
> null pointer exception with null avro collections
> -------------------------------------------------
>
> Key: CRUNCH-103
> URL: https://issues.apache.org/jira/browse/CRUNCH-103
> Project: Crunch
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.4.0
> Reporter: Joseph Adler
> Assignee: Josh Wills
> Fix For: 0.4.0
>
> Attachments: CRUNCH-103.patch, CRUNCH-103.patch
>
>
> If you attempt to create an avro record containing a collection, you may get a null pointer exception if the collection is null.
> For example, suppose you had a ptype of Avros.tableOf(Avros.ints(), Avros.collections(Avros.ints())). When emitting the output records, you would get a null pointer exception if you emitted Pair.of(1,(Collection<Integer>)null)
> (I'll submit a patch to fix)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CRUNCH-103) null pointer exception with null avro
collections
Posted by "Josh Wills (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CRUNCH-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Wills updated CRUNCH-103:
------------------------------
Attachment: CRUNCH-103.patch
Added a test-- what do you think?
> null pointer exception with null avro collections
> -------------------------------------------------
>
> Key: CRUNCH-103
> URL: https://issues.apache.org/jira/browse/CRUNCH-103
> Project: Crunch
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.4.0
> Reporter: Joseph Adler
> Assignee: Josh Wills
> Fix For: 0.4.0
>
> Attachments: CRUNCH-103.patch, CRUNCH-103.patch
>
>
> If you attempt to create an avro record containing a collection, you may get a null pointer exception if the collection is null.
> For example, suppose you had a ptype of Avros.tableOf(Avros.ints(), Avros.collections(Avros.ints())). When emitting the output records, you would get a null pointer exception if you emitted Pair.of(1,(Collection<Integer>)null)
> (I'll submit a patch to fix)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CRUNCH-103) null pointer exception with null
avro collections
Posted by "Joseph Adler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CRUNCH-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486388#comment-13486388 ]
Joseph Adler commented on CRUNCH-103:
-------------------------------------
Thanks for writing the test case; that looks correct to me
> null pointer exception with null avro collections
> -------------------------------------------------
>
> Key: CRUNCH-103
> URL: https://issues.apache.org/jira/browse/CRUNCH-103
> Project: Crunch
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.4.0
> Reporter: Joseph Adler
> Assignee: Josh Wills
> Fix For: 0.4.0
>
> Attachments: CRUNCH-103.patch, CRUNCH-103.patch
>
>
> If you attempt to create an avro record containing a collection, you may get a null pointer exception if the collection is null.
> For example, suppose you had a ptype of Avros.tableOf(Avros.ints(), Avros.collections(Avros.ints())). When emitting the output records, you would get a null pointer exception if you emitted Pair.of(1,(Collection<Integer>)null)
> (I'll submit a patch to fix)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CRUNCH-103) null pointer exception with null avro
collections
Posted by "Joseph Adler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CRUNCH-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joseph Adler updated CRUNCH-103:
--------------------------------
Attachment: CRUNCH-103.patch
diff file with my changes (hopefully this works as a patch)
> null pointer exception with null avro collections
> -------------------------------------------------
>
> Key: CRUNCH-103
> URL: https://issues.apache.org/jira/browse/CRUNCH-103
> Project: Crunch
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.4.0
> Reporter: Joseph Adler
> Assignee: Josh Wills
> Fix For: 0.4.0
>
> Attachments: CRUNCH-103.patch
>
>
> If you attempt to create an avro record containing a collection, you may get a null pointer exception if the collection is null.
> For example, suppose you had a ptype of Avros.tableOf(Avros.ints(), Avros.collections(Avros.ints())). When emitting the output records, you would get a null pointer exception if you emitted Pair.of(1,(Collection<Integer>)null)
> (I'll submit a patch to fix)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira