diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2007-02-05 08:58:30 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2007-02-05 08:58:30 +0000 |
| commit | 9dab5f08f696dfcf70b8c75751233a11847cec8c (patch) | |
| tree | 9b0f10637df6f932ae1aa4c6edb957c4f5a29a27 /qpid/java | |
| parent | 7a92628379be27305863d89e8e52aae67c9a1797 (diff) | |
| download | qpid-python-9dab5f08f696dfcf70b8c75751233a11847cec8c.tar.gz | |
Fixed bug in stop(). If a connection is opened not start()ed then closed a NullPointerException will be thrown as the Dispatcher has not been created.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@503593 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java index 0feeaf1b63..35530b39c9 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java @@ -1652,7 +1652,11 @@ public class AMQSession extends Closeable implements Session, QueueSession, Topi { //stop the server delivering messages to this session suspendChannel(); - _dispatcher.setConnectionStopped(true); + + if (_dispatcher != null) + { + _dispatcher.setConnectionStopped(true); + } } /** |
