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;