Navigation Menu

Skip to content

Commit

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

Originally-Committed-As: d68e3ba2c51b730c04d9c15d82ac012e8d1aaec9
  • Loading branch information
stephenc authored and kohsuke committed Apr 19, 2011
1 parent 6f3f7df commit fd2c85b
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 fd2c85b

Please sign in to comment.