提交 d68e3ba2 编写于 作者: S Stephen Connolly 提交者: Kohsuke Kawaguchi

Tsk Tsk! Kohsuke you missed a possible NPE for people running hpi:run on...

Tsk Tsk! Kohsuke you missed a possible NPE for people running hpi:run on plugins in fixing [JENKINS-6545]
上级 828c9133
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册