Skip to content

Commit

Permalink
Fix NPE for unbuilt jobs when claim plugin is installed.
Browse files Browse the repository at this point in the history
[FIXED JENKINS-20129]
  • Loading branch information
david-resnick committed Oct 19, 2013
1 parent 27e4360 commit 0c2e61f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hudson/model/JobViewEntry.java
Expand Up @@ -415,6 +415,9 @@ public String getClaim() {
return null;
}
Run<?, ?> lastBuild = getLastCompletedRun();
if (lastBuild == null) {
return null;
}
// find the claim
String claim = "";
if (lastBuild instanceof hudson.matrix.MatrixBuild) {
Expand Down

0 comments on commit 0c2e61f

Please sign in to comment.