Skip to content

Commit

Permalink
[FIXES JENKINS-20932] Avoid NPE by checking the getLastSuccessfulBuil…
Browse files Browse the repository at this point in the history
…d() for null before calling resolveProject()
  • Loading branch information
recampbell committed Dec 10, 2013
1 parent 2b63546 commit f39bb4f
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 f39bb4f

Please sign in to comment.