[ https://issues.apache.org/jira/browse/CRUNCH-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabriel Reid updated CRUNCH-152:
--------------------------------
Attachment: CRUNCH-152.patch
Thanks for reporting this Tim, and particularly for providing the code to reproduce it!
Attached patch corrects the issue, as well as cleaning up the null handling for deep copying
in general. It passes all integration tests, as well as the tests that Tim supplied, so I'll
push it to master.
> DeepCopy of Pair (for getDetachedValue(..)) with null-element fails with NPE
> ----------------------------------------------------------------------------
>
> Key: CRUNCH-152
> URL: https://issues.apache.org/jira/browse/CRUNCH-152
> Project: Crunch
> Issue Type: Bug
> Affects Versions: 0.4.0
> Reporter: Tim van Heugten
> Assignee: Gabriel Reid
> Priority: Blocker
> Attachments: AvroString.java, CRUNCH-152.patch, DeepCopyingAvroValueNullTest.java,
NestedPairOfNullsFn.java, NullPairFn.java, single_word.txt
>
>
> If I have a Pair.of(null,null) that I want stored in multiple outputs. Crunch fails with
a NullPointerException.
> The issue also occurs when just one of the values is null.
> The pipeline was able to handle such pairs before in 0.3.
--
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
|