summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-06 07:50:44 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-03-06 07:50:44 +0000
commitb4e0125c4c64954c5af9711ca725470ba4a2a007 (patch)
treec04f309ec067e7c313b5dc6109b1cc842aa64c91
parentf80e186c6c412fd31801f211b75625cfd1a096d6 (diff)
Make sure the TCCL is not set to null
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@750797 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultFactoryExtensionPoint.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultFactoryExtensionPoint.java b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultFactoryExtensionPoint.java
index 1bee91dcea..80c4e2b69d 100644
--- a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultFactoryExtensionPoint.java
+++ b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/core/DefaultFactoryExtensionPoint.java
@@ -89,7 +89,9 @@ public class DefaultFactoryExtensionPoint implements FactoryExtensionPoint {
return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {
public ClassLoader run() {
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
- Thread.currentThread().setContextClassLoader(classLoader);
+ if (classLoader != null) {
+ Thread.currentThread().setContextClassLoader(classLoader);
+ }
return tccl;
}
});