Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FindBugs noticed a possible NPE in the original #29.
Theoretically could be thrown if a build started prior to the fix of JENKINS-36372 `load`ed something after the upgrade restart.
  • Loading branch information
jglick committed Nov 8, 2016
1 parent fab9a62 commit c95585b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -136,7 +136,9 @@ public CpsFlowExecution getExecution() {

/** Track a script so that we can fix up its {@link Script#getBinding}s after deserialization. */
void register(Script script) {
scripts.add(script);
if (scripts != null) {
scripts.add(script);
}
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit c95585b

Please sign in to comment.