git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@957213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-06-23 14:23:51 +00:00
parent ac77a047c0
commit 1f063e8557
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class ActiveMQSessionExecutor implements Task {
ActiveMQSessionExecutor(ActiveMQSession session) { ActiveMQSessionExecutor(ActiveMQSession session) {
this.session = session; this.session = session;
if (this.session.connection.isMessagePrioritySupported()) { if (this.session.connection != null && this.session.connection.isMessagePrioritySupported()) {
this.messageQueue = new SimplePriorityMessageDispatchChannel(); this.messageQueue = new SimplePriorityMessageDispatchChannel();
}else { }else {
this.messageQueue = new FifoMessageDispatchChannel(); this.messageQueue = new FifoMessageDispatchChannel();