Skip to content

Commit

Permalink
[misc] Bulletproofing
Browse files Browse the repository at this point in the history
(cherry picked from commit 9006f01)
  • Loading branch information
tmortagne committed Feb 27, 2015
1 parent de14bf6 commit 55b3d4d
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -56,7 +56,9 @@ public class ThreadClassloaderExecutionContextInitializer implements ExecutionCo
@Override
public void initialize(ExecutionContext context) throws ExecutionContextException
{
Thread.currentThread().setContextClassLoader(
new ContextNamespaceURLClassLoader(currentWikiProvider, this.classLoaderManager));
if (!(Thread.currentThread().getContextClassLoader() instanceof ContextNamespaceURLClassLoader)) {
Thread.currentThread().setContextClassLoader(
new ContextNamespaceURLClassLoader(currentWikiProvider, this.classLoaderManager));
}
}
}

0 comments on commit 55b3d4d

Please sign in to comment.