mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2790 - check connection to prevent NPEs
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@957213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ac77a047c0
commit
1f063e8557
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue