hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-1762) Potential NPE in distributedshell Client#run()
Date Tue, 25 Feb 2014 04:36:31 GMT
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
    addToLocalResources(fs, appMasterJar, appMasterJarPath, appId.getId(),
        localResources, null);
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

View raw message