Skip to content

Commit

Permalink
[FIXED JENKINS-18024] Avoind NPE when checking if reason why in the q…
Browse files Browse the repository at this point in the history
…ueue has beed changed
  • Loading branch information
vjuranek committed May 21, 2013
1 parent c3ee622 commit b8b9b71
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
Expand Down

0 comments on commit b8b9b71

Please sign in to comment.