This commit is contained in:
Clebert Suconic 2018-04-19 13:28:30 -04:00
commit aa2f4f7bc5
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());
}