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)