activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: ARTEMIS-1793 fix property detection
Date Thu, 19 Apr 2018 17:28:38 GMT
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 <jbertram@apache.org>
Authored: Thu Apr 19 11:25:03 2018 -0500
Committer: Clebert Suconic <clebertsuconic@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());
       }
 


Mime
View raw message