From 106c52a741c781c656faa0bdc27f72f0174e17d7 Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Thu, 19 Apr 2018 11:25:03 -0500 Subject: [PATCH] ARTEMIS-1793 fix property detection --- .../apache/activemq/artemis/core/protocol/stomp/StompUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java index 29e4217ae9..cd17982912 100644 --- a/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java +++ b/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java @@ -124,7 +124,7 @@ public class StompUtils { if (message.getValidatedUserID() != null) { command.addHeader(Stomp.Headers.Message.VALIDATED_USER, message.getValidatedUserID()); } - if (message.getByteProperty(Message.HDR_ROUTING_TYPE.toString()) != null) { + if (message.containsProperty(Message.HDR_ROUTING_TYPE)) { command.addHeader(Stomp.Headers.Send.DESTINATION_TYPE, RoutingType.getType(message.getByteProperty(Message.HDR_ROUTING_TYPE.toString())).toString()); }