activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r388079 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/ServiceStopper.java
Date Thu, 23 Mar 2006 07:22:22 GMT
Author: chirino
Date: Wed Mar 22 23:22:21 2006
New Revision: 388079

URL: http://svn.apache.org/viewcvs?rev=388079&view=rev
Log:
Avoid NPE

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/ServiceStopper.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/ServiceStopper.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/ServiceStopper.java?rev=388079&r1=388078&r2=388079&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/ServiceStopper.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/util/ServiceStopper.java
Wed Mar 22 23:22:21 2006
@@ -37,7 +37,9 @@
      */
     public void stop(Service service) {
         try {
-            service.stop();
+            if( service!=null ) {
+                service.stop();
+            }
         }
         catch (Exception e) {
             onException(service, e);



Mime
View raw message