Skip to content
Permalink
Browse files

[FIXED JENKINS-18024] Avoind NPE when checking if reason why in the q…

…ueue has beed changed
  • Loading branch information...
vjuranek committed May 21, 2013
1 parent c3ee622 commit b8b9b71be1c55f76791e958318105302f3e226b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/matrix/DefaultMatrixExecutionStrategyImpl.java
@@ -314,7 +314,7 @@ private MatrixRun waitForCompletion(MatrixBuildExecution exec, MatrixConfigurati
if(qi!=null) {
// if the build seems to be stuck in the queue, display why
String why = qi.getWhy();
if(!why.equals(whyInQueue) && System.currentTimeMillis()-startTime>5000) {
if(why != null && !why.equals(whyInQueue) && System.currentTimeMillis()-startTime>5000) {
listener.getLogger().print("Configuration " + ModelHyperlinkNote.encodeTo(c)+" is still in the queue: ");
qi.getCauseOfBlockage().print(listener); //this is still shown on the same line
whyInQueue = why;

0 comments on commit b8b9b71

Please sign in to comment.
You can’t perform that action at this time.