提交 b257b6f1 编写于 作者: K Kohsuke Kawaguchi

fix NPE

上级 6f0a7b4d
......@@ -54,6 +54,7 @@ public class TestExtensionLoader extends GuiceExtensionAnnotation<TestExtension>
@Override
protected boolean isActive(AnnotatedElement e) {
TestEnvironment env = TestEnvironment.get();
if (env==null) return false;
TestExtension a = e.getAnnotation(TestExtension.class);
if (a==null) return false; // stale index
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册