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 committed 2011-03-31 16:35:05 +01:00
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