Skip to content

Commit

Permalink
Merge pull request #53 from christ66/JENKINS-23749
Browse files Browse the repository at this point in the history
[FIXED Jenkins-23749] NPE when view contains no builds.
  • Loading branch information
ndeloof committed Sep 7, 2014
2 parents b6a01ad + c57f33f commit 59780cb
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -393,8 +393,16 @@ public boolean hasDownstreamProjects(final AbstractProject<?, ?> currentProject)
* @return - Representation of the projects and their related builds making up the build pipeline view
*/
public BuildPipelineForm getBuildPipelineForm() {
if (noOfDisplayedBuilds == null) {
return null;
}

final int maxNoOfDisplayBuilds = Integer.valueOf(noOfDisplayedBuilds);

if (gridBuilder == null) {
return null;
}

final ProjectGrid project = gridBuilder.build(this);
if (project.isEmpty()) {
return null;
Expand Down

0 comments on commit 59780cb

Please sign in to comment.