Skip to content

Commit

Permalink
Merge pull request #56 from recampbell/jenkins-20931
Browse files Browse the repository at this point in the history
[FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuild()...
  • Loading branch information
ikedam committed Jan 3, 2014
2 parents 0bf3fe8 + f39bb4f commit 4f7219e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -211,7 +211,7 @@ private static void iterateBuilds(AbstractProject context, String projects, SubP
}

// If oldBuild is null then we have already examined LastSuccessfulBuild as well.
if (currentBuild != null) {
if (currentBuild != null && context.getLastSuccessfulBuild() != null) {
resolveProject((AbstractBuild)context.getLastSuccessfulBuild(), subProjectData);
}
}
Expand Down

0 comments on commit 4f7219e

Please sign in to comment.