fixed NPE

This commit is contained in:
Kohsuke Kawaguchi committed 2011-06-06 12:43:02 -07:00
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());
}