thodimi1 commented on a change in pull request #523:
URL: https://github.com/apache/activemq/pull/523#discussion_r426158516



##########
File path: 
activemq-stomp/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.java
##########
@@ -558,10 +568,6 @@ protected void onStompSubscribe(StompFrame command) throws 
ProtocolException {
             throw new ProtocolException("SUBSCRIBE received without a 
subscription id!");
         }
 
-        if (destination == null || "".equals(destination)) {
-            throw new ProtocolException("Invalid empty or 'null' Destination 
header");
-        }
-
         final ActiveMQDestination actualDest = 
translator.convertDestination(this, destination, true);

Review comment:
       Corrected
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to