mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 15:15:54 +00:00
fixed NPE
This commit is contained in:
1 parent
a557e80d1a
commit
5542f28bca
1 file changed
+1
-1
@@ -77,7 +77,7 @@ public class ExtensionComponent<T> implements Comparable<ExtensionComponent<T>>
|
||||
|
||||
// make the order bit more deterministic among extensions of the same ordinal
|
||||
if (this.instance instanceof Descriptor) {
|
||||
return ((Descriptor)this.instance).getDisplayName().compareTo(((Descriptor)that.instance).getDisplayName());
|
||||
return Util.fixNull(((Descriptor)this.instance).getDisplayName()).compareTo(Util.fixNull(((Descriptor)that.instance).getDisplayName()));
|
||||
} else {
|
||||
return this.instance.getClass().getName().compareTo(that.instance.getClass().getName());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user