You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "kavita sharma (Commented) (JIRA)" <ji...@apache.org> on 2011/12/19 06:58:30 UTC

[jira] [Commented] (MAPREDUCE-3539) possible Cases for NullPointerException

    [ https://issues.apache.org/jira/browse/MAPREDUCE-3539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172039#comment-13172039 ] 

kavita sharma commented on MAPREDUCE-3539:
------------------------------------------

Hi,
No testcase is present because for closing streams i have used IOUtils that is a exiting and tested utility.

Thanks
Kavita Sharma
                
> possible Cases for NullPointerException
> ---------------------------------------
>
>                 Key: MAPREDUCE-3539
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-3539
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>    Affects Versions: 0.20.2, 0.20.205.0, 0.21.0, 1.0.0
>            Reporter: kavita sharma
>            Priority: Trivial
>             Fix For: 0.20.205.0, 1.0.0
>
>         Attachments: MAPREDUCE-3539-branch-1.patch, MAPREDUCE-3539.patch
>
>
> in DistCh.java
> {noformat}
> in setup method
> opWriter.close();
> if opWriter is null then if we will try to close will throw NPE.
> {noformat}
> {noformat}
> in checkDuplication method
> in.close();
> if in is null then if we will try to close will throw NPE.
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira