summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2007-02-16 14:23:23 +0000
committerMartin Ritchie <ritchiem@apache.org>2007-02-16 14:23:23 +0000
commitdfc8cdf0c0dbcfcbb62b8f6c091f54fa39aae478 (patch)
tree475a22c945b83e2b29402c145bb53ef42e0fed11
parent42218badfdf92007a4a47a3fa7ca38528c62f215 (diff)
downloadqpid-python-dfc8cdf0c0dbcfcbb62b8f6c091f54fa39aae478.tar.gz
QPID-376 - Updated All Handlers to throw channel exception when channel is null.
Updated QueueBindHandler. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@508416 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java
index 3c903b471d..8c722d33cc 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java
+++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java
@@ -66,10 +66,10 @@ public class QueueBindHandler implements StateAwareMethodListener<QueueBindBody>
{
AMQChannel channel = session.getChannel(evt.getChannelId());
-// if (channel == null)
-// {
-// throw body.getChannelNotFoundException(evt.getChannelId());
-// }
+ if (channel == null)
+ {
+ throw body.getChannelNotFoundException(evt.getChannelId());
+ }
queue = channel.getDefaultQueue();