Skip to content

Commit 8dcdb67

Browse files
committedJun 25, 2015
[FIXED JENKINS-28824] Avoids NPE for running builds. Patch by @corentin_rossignon.
1 parent 171c874 commit 8dcdb67

File tree

1 file changed

+3
-0
lines changed
  • src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition

1 file changed

+3
-0
lines changed
 

‎src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ private void drawMainLinksJS(String nameIt) {
8080
}
8181

8282
private int encodeRunResult(MatrixRun run) {
83+
if (run.getResult() == null) {
84+
return 0
85+
};
8386
if (Result.SUCCESS.isWorseOrEqualTo(run.getResult())) {
8487
return 0
8588
};

0 commit comments

Comments
 (0)