Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-27957] NullPointerException in AdvancedQueueSorter
Some items do not have names so returning 0 seems to be the only (?)
option
  • Loading branch information
emsa23 committed Apr 15, 2015
1 parent 9e30328 commit 93f73c0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -96,7 +96,8 @@ public int compare(BuildableItem o1, BuildableItem o2) {
return -1;
}
// Having same time-stamp is not likely - but maybe it can happen ...
return o1.getDisplayName().compareTo(o2.getDisplayName());
// ... but what is the alternative here?
return 0;
}
});
//
Expand Down

0 comments on commit 93f73c0

Please sign in to comment.