Skip to content
Permalink
Browse files
Merge pull request #20 from ikedam/feature/JENKINS-42626_NpeOnByBuild…
…Results

[FIXED JENKINS-42626] Avoid NPE when adding "By build result"
  • Loading branch information
ikedam committed Apr 16, 2017
2 parents e823701 + b5defc0 commit 1f2359f2b40a22e6e36ed01df9fbab75faea8030
Showing with 1 addition and 1 deletion.
  1. +1 −1 ...ain/resources/hudson/plugins/matrix_configuration_parameter/shortcut/ResultShortcut/config.groovy
@@ -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()
);
}

0 comments on commit 1f2359f

Please sign in to comment.