You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rg...@apache.org on 2006/12/18 11:08:10 UTC

svn commit: r488188 - /incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/exchange/DestNameExchange.java

Author: rgreig
Date: Mon Dec 18 02:08:09 2006
New Revision: 488188

URL: http://svn.apache.org/viewvc?view=rev&rev=488188
Log:
QPID-211 : Patch supplied by Rob Godfrey - Perform null check against routing key before looking in the map

Modified:
    incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/exchange/DestNameExchange.java

Modified: incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/exchange/DestNameExchange.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/exchange/DestNameExchange.java?view=diff&rev=488188&r1=488187&r2=488188
==============================================================================
--- incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/exchange/DestNameExchange.java (original)
+++ incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/exchange/DestNameExchange.java Mon Dec 18 02:08:09 2006
@@ -171,7 +171,7 @@
         BasicPublishBody publishBody = payload.getPublishBody();
 
         final String routingKey = publishBody.routingKey;
-        final List<AMQQueue> queues = _index.get(routingKey);
+        final List<AMQQueue> queues = (routingKey == null) ? null : _index.get(routingKey);
         if (queues == null || queues.isEmpty())
         {
             String msg = "Routing key " + routingKey + " is not known to " + this;