Skip to content

Commit

Permalink
GH-1133: Check for null reply before applying MPPs
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Dec 11, 2019
1 parent 79d27bc commit bb965f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@ private Message doSendAndReceiveAsListener(final String exchange, final String r
try {
reply = exchangeMessages(exchange, routingKey, message, correlationData, channel, pendingReply,
messageTag);
if (this.afterReceivePostProcessors != null) {
if (reply != null && this.afterReceivePostProcessors != null) {
for (MessagePostProcessor processor : this.afterReceivePostProcessors) {
reply = processor.postProcessMessage(reply);
}
Expand Down

0 comments on commit bb965f7

Please sign in to comment.