activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r752965 - /activemq/activemq-cpp/trunk/src/main/activemq/transport/TransportFilter.h
Date Thu, 12 Mar 2009 18:45:07 GMT
Author: tabish
Date: Thu Mar 12 18:45:06 2009
New Revision: 752965

URL: http://svn.apache.org/viewvc?rev=752965&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-100

Fix a NullPointerException that can occur on shutdown.

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/transport/TransportFilter.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/transport/TransportFilter.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/transport/TransportFilter.h?rev=752965&r1=752964&r2=752965&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/transport/TransportFilter.h (original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/transport/TransportFilter.h Thu Mar 12 18:45:06
2009
@@ -198,8 +198,10 @@
          * @throws CMSException if errors occur.
          */
         virtual void close() throw( cms::CMSException ){
-            next->close();
-            next.reset( NULL );
+            if( next != NULL ) {
+                next->close();
+                next.reset( NULL );
+            }
         }
 
         /**



Mime
View raw message