You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/04/16 20:00:22 UTC

svn commit: r1588004 - /qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp

Author: gsim
Date: Wed Apr 16 18:00:21 2014
New Revision: 1588004

URL: http://svn.apache.org/r1588004
Log:
QPID-5708: only set 'queue' type if routing-key is not empty

Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp?rev=1588004&r1=1588003&r2=1588004&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/AddressResolution.cpp Wed Apr 16 18:00:21 2014
@@ -678,8 +678,10 @@ Address AddressResolution::convert(const
 {
     Address address;
     if (rt.getExchange().empty()) {//if default exchange, treat as queue
-        address.setName(rt.getRoutingKey());
-        address.setType(QUEUE_ADDRESS);
+        if (!rt.getRoutingKey().empty()) {
+            address.setName(rt.getRoutingKey());
+            address.setType(QUEUE_ADDRESS);
+        }
     } else {
         address.setName(rt.getExchange());
         address.setSubject(rt.getRoutingKey());



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org