Skip to content

Commit

Permalink
Merge pull request #23 from ederst/master
Browse files Browse the repository at this point in the history
[JENKINS-24059] Fixed NullPointerException on missing downstream project
  • Loading branch information
rsandell committed Aug 11, 2014
2 parents 36165db + 1f35437 commit 39c6e9f
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -342,7 +342,16 @@ private static void adjustProjectDisplayName(

for (DownstreamBuildFinder dbf : DownstreamBuildFinder.getAll()) {

foundDbf.addAll(dbf.getDownstreamBuilds(build));
List<AbstractBuild<?, ?>> downstreamBuilds = dbf.getDownstreamBuilds(build);

for (AbstractBuild<?, ?> downstreamBuild : downstreamBuilds) {
if (downstreamBuild != null) {
foundDbf.add(downstreamBuild);
} else {
logger.log(Level.FINER, "[BFA] Ignoring missing downstream build for " + build.getFullDisplayName());
}
}

}
return foundDbf;
}
Expand Down

0 comments on commit 39c6e9f

Please sign in to comment.