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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1241865 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Amar Kamat 2012-02-08 11:08:21 +00:00
parent 78971a4267
commit df16466878
2 changed files with 3 additions and 1 deletions

View File

@ -211,6 +211,8 @@ Release 0.23.1 - 2012-02-08
acmurthy)
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 class ZombieJob implements JobStory {
@Override
public String getName() {
JobName jobName = job.getJobName();
if (jobName == null) {
if (jobName == null || jobName.getValue() == null) {
return "(name unknown)";
} else {
return jobName.getValue();