Tsk Tsk! Kohsuke you missed a possible NPE for people running hpi:run on plugins in fixing [JENKINS-6545]

This commit is contained in:
Stephen Connolly authored and Kohsuke Kawaguchi committed 2011-04-19 16:27:45 -07:00
1 parent 828c91334d
commit d68e3ba2c5
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