Skip to content

Commit

Permalink
[FIXED JENKINS-42626] Avoid NPE when adding "By build result"
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedam committed Apr 1, 2017
1 parent e823701 commit b5defc0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -36,7 +36,7 @@ f.entry(field: "resultsToCheck", title: _("Results to check")) {
for (Result r: [Result.SUCCESS, Result.UNSTABLE, Result.FAILURE, Result.NOT_BUILT, Result.ABORTED]) {
f.checkbox(
json: r.toString(),
checked: instance.resultsToCheck.contains(r.toString()),
checked: instance?instance.resultsToCheck.contains(r.toString()):false,
title: r.toString()
);
}
Expand Down

0 comments on commit b5defc0

Please sign in to comment.