Skip to content

Commit

Permalink
Merge pull request #20 from ikedam/feature/JENKINS-42626_NpeOnByBuild…
Browse files Browse the repository at this point in the history
…Results

[FIXED JENKINS-42626] Avoid NPE when adding "By build result"
  • Loading branch information
ikedam committed Apr 16, 2017
2 parents e823701 + b5defc0 commit 1f2359f
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 1f2359f

Please sign in to comment.