mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user