ARTEMIS-1793 fix property detection

This commit is contained in:
Justin Bertram 2018-04-19 11:25:03 -05:00 committed by Clebert Suconic
parent 3a45f91092
commit 106c52a741
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}