File tree Expand file tree Collapse file tree 3 files changed +4
-53
lines changed
src/com/rabbitmq/client/impl Expand file tree Collapse file tree 3 files changed +4
-53
lines changed Original file line number Diff line number Diff line change @@ -428,9 +428,9 @@ private class MainLoop extends Thread {
428
428
// for non-zero channels (and any inbound commands on
429
429
// channel zero that aren't Connection.CloseOk) must
430
430
// be discarded.
431
- _channelManager
432
- . getChannel ( frame . channel )
433
- .handleFrame (frame );
431
+ ChannelN channel = _channelManager . getChannel ( frame . channel );
432
+ // FIXME: catch NullPointerException and throw more informative one?
433
+ channel .handleFrame (frame );
434
434
}
435
435
}
436
436
}
Original file line number Diff line number Diff line change @@ -62,13 +62,9 @@ public synchronized void setChannelMax(int value) {
62
62
* Public API - Looks up an existing channel associated with this connection.
63
63
* @param channelNumber the number of the required channel
64
64
* @return the relevant channel descriptor
65
- * @throws UnknownChannelException if there is no Channel associated with the
66
- * required channel number.
67
65
*/
68
66
public ChannelN getChannel (int channelNumber ) {
69
- ChannelN result = _channelMap .get (channelNumber );
70
- if (result == null ) throw new UnknownChannelException (channelNumber );
71
- return result ;
67
+ return _channelMap .get (channelNumber );
72
68
}
73
69
74
70
public void handleSignal (ShutdownSignalException signal ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments