Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #108 from jglick/NPE-getLastBuiltOn
Browse files Browse the repository at this point in the history
Illegal to call Jenkins.getNode(null)
  • Loading branch information
jglick committed Mar 31, 2015
2 parents afff105 + 65f799c commit c6e0d56
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -180,6 +180,9 @@ private Object readResolve() {
}

@Override public Node getLastBuiltOn() {
if (label == null) {
return null;
}
Jenkins j = Jenkins.getInstance();
if (j == null) {
return null;
Expand Down

0 comments on commit c6e0d56

Please sign in to comment.