You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2018/04/19 17:28:38 UTC

[2/2] activemq-artemis git commit: ARTEMIS-1793 fix property detection

ARTEMIS-1793 fix property detection


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/106c52a7
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/106c52a7
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/106c52a7

Branch: refs/heads/master
Commit: 106c52a741c781c656faa0bdc27f72f0174e17d7
Parents: 3a45f91
Author: Justin Bertram <jb...@apache.org>
Authored: Thu Apr 19 11:25:03 2018 -0500
Committer: Clebert Suconic <cl...@apache.org>
Committed: Thu Apr 19 13:28:30 2018 -0400

----------------------------------------------------------------------
 .../apache/activemq/artemis/core/protocol/stomp/StompUtils.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/106c52a7/artemis-protocols/artemis-stomp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/stomp/StompUtils.java
----------------------------------------------------------------------
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 29e4217..cd17982 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());
       }