activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1211801 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
Date Thu, 08 Dec 2011 10:17:18 GMT
Author: chirino
Date: Thu Dec  8 10:17:18 2011
New Revision: 1211801

URL: http://svn.apache.org/viewvc?rev=1211801&view=rev
Log:
Fixes APLO-105 : Avoid NPE if the consumer has been closed.

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala?rev=1211801&r1=1211800&r2=1211801&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/Queue.scala
Thu Dec  8 10:17:18 2011
@@ -1848,7 +1848,9 @@ class Subscription(val queue:Queue, val 
 
     session = consumer.connect(this)
     session.refiller = dispatch_queue.runnable {
-      check_consumer_stall
+      if(session!=null) {
+        check_consumer_stall
+      }
       if( pos!=null ) {
         pos.run
       }



Mime
View raw message