servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1406051 - /servicemix/components/branches/components-2011.02.x/bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
Date Tue, 06 Nov 2012 06:08:22 GMT
Author: ffang
Date: Tue Nov  6 06:08:21 2012
New Revision: 1406051

URL: http://svn.apache.org/viewvc?rev=1406051&view=rev
Log:
[SMXCOMP-952]NPE in CxfBcConsumer when ServiceMix is deployed as a web application

Modified:
    servicemix/components/branches/components-2011.02.x/bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java

Modified: servicemix/components/branches/components-2011.02.x/bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
URL: http://svn.apache.org/viewvc/servicemix/components/branches/components-2011.02.x/bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java?rev=1406051&r1=1406050&r2=1406051&view=diff
==============================================================================
--- servicemix/components/branches/components-2011.02.x/bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
(original)
+++ servicemix/components/branches/components-2011.02.x/bindings/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcConsumer.java
Tue Nov  6 06:08:21 2012
@@ -418,11 +418,13 @@ public class CxfBcConsumer extends Consu
                 }
                 providedBus = null;
             } else {
-                if (allBuses.keySet().contains(bus.getId())) {
-                    allBuses.remove(bus.getId());
+                if (bus != null) {
+                    if (allBuses.keySet().contains(bus.getId())) {
+                        allBuses.remove(bus.getId());
+                    }
+                    bus.shutdown(true);
+                    bus = null;
                 }
-                bus.shutdown(true);
-                bus = null;
             }
         }
         super.deactivate();



Mime
View raw message