We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76fbe60 commit 5ff6ad4Copy full SHA for 5ff6ad4
src/main/java/com/rabbitmq/client/impl/AMQChannel.java
@@ -165,7 +165,7 @@ public void handleCompleteInboundCommand(AMQCommand command) throws IOException
165
if (_checkRpcResponseType) {
166
synchronized (_channelMutex) {
167
// check if this reply command is intended for the current waiting request before calling nextOutstandingRpc()
168
- if (!_activeRpc.canHandleReply(command)) {
+ if (_activeRpc != null && !_activeRpc.canHandleReply(command)) {
169
// this reply command is not intended for the current waiting request
170
// most likely a previous request timed out and this command is the reply for that.
171
// Throw this reply command away so we don't stop the current request from waiting for its reply
0 commit comments