mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 13:32:24 +00:00
Tsk Tsk! Kohsuke you missed a possible NPE for people running hpi:run on plugins in fixing [JENKINS-6545]
This commit is contained in:
1 parent
2bd1f1b3f2
commit
97f1d02cbd
1 file changed
+2
@@ -93,6 +93,8 @@ public class TestExtensionLoader extends ExtensionFinder {
|
||||
}
|
||||
|
||||
private boolean isActive(TestEnvironment env, Class<?> extType) {
|
||||
if (env == null || env.testCase == null)
|
||||
return false;
|
||||
for (Class<?> outer = extType; outer!=null; outer=outer.getEnclosingClass())
|
||||
if (outer.isInstance(env.testCase))
|
||||
return true; // enclosed
|
||||
|
||||
Reference in new issue
Block a user