Skip to content
Permalink
Browse files

[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 93f73c0cce8ccf5238415a8fb37cd9558d9bcf5e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/jenkins/advancedqueue/sorter/AdvancedQueueSorter.java
@@ -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;
}
});
//

0 comments on commit 93f73c0

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