activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r957213 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSessionExecutor.java
Date Wed, 23 Jun 2010 14:23:51 GMT
Author: dejanb
Date: Wed Jun 23 14:23:51 2010
New Revision: 957213

URL: http://svn.apache.org/viewvc?rev=957213&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2790 - check connection to prevent NPEs

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSessionExecutor.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSessionExecutor.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSessionExecutor.java?rev=957213&r1=957212&r2=957213&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSessionExecutor.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQSessionExecutor.java
Wed Jun 23 14:23:51 2010
@@ -45,7 +45,7 @@ public class ActiveMQSessionExecutor imp
 
     ActiveMQSessionExecutor(ActiveMQSession session) {
         this.session = session;
-        if (this.session.connection.isMessagePrioritySupported()) {
+        if (this.session.connection != null && this.session.connection.isMessagePrioritySupported())
{
            this.messageQueue = new SimplePriorityMessageDispatchChannel();
         }else {
             this.messageQueue = new FifoMessageDispatchChannel();



Mime
View raw message