Skip to content
Permalink
Browse files
[FIXED JENKINS-42626] Avoid NPE when adding "By build result"
  • Loading branch information
ikedam committed Apr 1, 2017
1 parent e823701 commit b5defc02dfb7ad6b8b3d098c0446fe716d1dbf6f
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 b5defc0

Please sign in to comment.