Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tsk Tsk! Kohsuke you missed a possible NPE for people running hpi:run…
… on plugins in fixing [JENKINS-6545]

Originally-Committed-As: 97f1d02cbdc0aa85d2e907d878b126e80fd0880b
  • Loading branch information
stephenc committed Mar 31, 2011
1 parent 13961b6 commit c9f1e5f
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -93,6 +93,8 @@ public <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson hudson)
}

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
Expand Down

0 comments on commit c9f1e5f

Please sign in to comment.