diff options
author | Martin Ritchie <ritchiem@apache.org> | 2007-02-16 14:23:23 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2007-02-16 14:23:23 +0000 |
commit | 6213309b7c179fdddfeca0273d5c1f6592adedd7 (patch) | |
tree | d823aca97e02037cb4549c4a18230a7760d15632 | |
parent | 7e2a27173e561d78f5abc57d2125474a84cfff8e (diff) | |
download | qpid-python-6213309b7c179fdddfeca0273d5c1f6592adedd7.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/qpid@508416 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java b/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java index 3c903b471d..8c722d33cc 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/handler/QueueBindHandler.java +++ b/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(); |