GH-1133: Check for null reply before applying MPPs

This commit is contained in:
Gary Russell
2019-12-11 16:24:00 -05:00
parent 79d27bcc87
commit bb965f7711

View File

@@ -1952,7 +1952,7 @@ public class RabbitTemplate extends RabbitAccessor // NOSONAR type line count
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);
}