Jenkins.getInstance() is safe to assume non-null

- Only ever called after extensions are on the classpath and before termination
This commit is contained in:
Stephen Connolly committed 2016-03-08 10:20:44 +00:00
1 parent b6594b7b3f
commit 2f70b2fe8b
1 file changed
+1 -4
@@ -61,10 +61,7 @@ public class NullIdDescriptorMonitor extends AdministrativeMonitor {
}
private void verify() {
Jenkins h = Jenkins.getInstanceOrNull();
if (h == null) {
return;
}
Jenkins h = Jenkins.getInstance();
for (Descriptor d : h.getExtensionList(Descriptor.class)) {
PluginWrapper p = h.getPluginManager().whichPlugin(d.getClass());
String id;