servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r472794 - /incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java
Date Thu, 09 Nov 2006 06:52:32 GMT
Author: gnodet
Date: Wed Nov  8 22:52:32 2006
New Revision: 472794

URL: http://svn.apache.org/viewvc?view=rev&rev=472794
Log:
Fix possible NPE reported by atif kureishy

Modified:
    incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java

Modified: incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java?view=diff&rev=472794&r1=472793&r2=472794
==============================================================================
--- incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java
(original)
+++ incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java
Wed Nov  8 22:52:32 2006
@@ -471,7 +471,7 @@
     private void doProcess(Endpoint ep, ExchangeProcessor processor, MessageExchange exchange)
throws Exception {
         ClassLoader oldCl = Thread.currentThread().getContextClassLoader();
         try {
-            if (ep.getServiceUnit().getConfigurationClassLoader() != null) {
+            if (ep != null && ep.getServiceUnit().getConfigurationClassLoader() !=
null) {
                 ClassLoader classLoader = ep.getServiceUnit().getConfigurationClassLoader();
                 Thread.currentThread().setContextClassLoader(classLoader);
             }



Mime
View raw message