hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10094) NPE in GenericOptionsParser#preProcessForWindows()
Date Fri, 15 Nov 2013 11:05:30 GMT

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

Hudson commented on HADOOP-10094:
---------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #392 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/392/])
HADOOP-10094. NPE in GenericOptionsParser#preProcessForWindows(). Contributed by Enis Soztutar.
(cnauroth: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1541991)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestGenericOptionsParser.java


> NPE in GenericOptionsParser#preProcessForWindows()
> --------------------------------------------------
>
>                 Key: HADOOP-10094
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10094
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 3.0.0, 1-win, 2.2.0
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>            Priority: Trivial
>             Fix For: 3.0.0, 1-win, 2.3.0
>
>         Attachments: hadoop-10094-branch-1-win_v2.patch, hadoop-10094_v2.patch, hbase-10094_v1.patch
>
>
> main() in java guarantees that args is not null, but on some uses of Tool interface from
java, people seem to pass around null as args, causing a NPE in GenericOptionsParser. 
> Although, passing null is not recommended, we can do a trivial fix. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message