You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/02/25 05:36:31 UTC

[jira] [Created] (YARN-1762) Potential NPE in distributedshell Client#run()

Ted Yu created YARN-1762:
----------------------------

             Summary: Potential NPE in distributedshell Client#run()
                 Key: YARN-1762
                 URL: https://issues.apache.org/jira/browse/YARN-1762
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Ted Yu


In hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell/src/main/java/org/apache/hadoop/yarn/applications/distributedshell/Client.java :
{code}
    addToLocalResources(fs, appMasterJar, appMasterJarPath, appId.getId(),
        localResources, null);
{code}
addToLocalResources() writes resources, null in the above case, through DataOutputStream#writeUTF().
According to http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/io/DataOutputStream.java#DataOutputStream.writeUTF%28java.lang.String%2Cjava.io.DataOutput%29 , str.length() would be called on the null parameter.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)