MAPREDUCE-3770. Zombie.getJobConf() results into NPE. (amarrk)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1241845 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Amar Kamat 2012-02-08 10:15:41 +00:00
parent 647f374607
commit e5060d3bbb
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,8 @@ Trunk (unreleased changes)
MAPREDUCE-2944. Improve checking of input for JobClient.displayTasks() (XieXianshan via harsh)
BUG FIXES
MAPREDUCE-3770. Zombie.getJobConf() results into NPE. (amarrk)
MAPREDUCE-3804. yarn webapp interface vulnerable to cross scripting attacks
(Dave Thompson via bobby)

View File

@ -229,7 +229,7 @@ public InputSplit[] getInputSplits() {
@Override
public String getName() {
JobName jobName = job.getJobName();
if (jobName == null) {
if (jobName == null || jobName.getValue() == null) {
return "(name unknown)";
} else {
return jobName.getValue();