You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Micah Whitacre (JIRA)" <ji...@apache.org> on 2015/10/06 03:57:27 UTC

[jira] [Assigned] (CRUNCH-567) close() triggers NPE if initialize() fails in 2 classes

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

Micah Whitacre reassigned CRUNCH-567:
-------------------------------------

    Assignee: Micah Whitacre  (was: Gabriel Reid)

> close() triggers NPE if initialize() fails in 2 classes
> -------------------------------------------------------
>
>                 Key: CRUNCH-567
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-567
>             Project: Crunch
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.12.0
>            Reporter: Sean Owen
>            Assignee: Micah Whitacre
>            Priority: Trivial
>             Fix For: 0.14.0
>
>         Attachments: CRUNCH-567.patch
>
>
> Quite trivial, but just noticed this on a customer project: in AvroRecordReader and HFileInputFormat, close() closes a reader object. However it will be null if initialize() is never called or fails to complete normally, generating an NPE. It ends up being an issue since their close() is called in some kind of finally block at some point.
> Attaching a patch for now but do we do pull requests here now instead?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)