mirror of https://github.com/apache/activemq.git
AMQ-6402: Fixed potential NPE in OriginalDestinationPropagateStrategy
This commit is contained in:
parent
b37b9eb5af
commit
8447e1af2d
|
@ -40,7 +40,7 @@ public class OriginalDestinationPropagateStrategy implements MessageCreatedStrat
|
|||
if (exchange.getIn() instanceof JmsMessage) {
|
||||
JmsMessage msg = exchange.getIn(JmsMessage.class);
|
||||
Message jms = msg.getJmsMessage();
|
||||
if (message instanceof ActiveMQMessage) {
|
||||
if (jms != null && jms instanceof ActiveMQMessage && message instanceof ActiveMQMessage) {
|
||||
ActiveMQMessage amq = (ActiveMQMessage) jms;
|
||||
if (amq.getOriginalDestination() == null) {
|
||||
ActiveMQDestination from = amq.getDestination();
|
||||
|
|
Loading…
Reference in New Issue