ARTEMIS-1455 HQ222142: Error on resetting large message deliver - null: java.lang.NullPointerException

This commit is contained in:
Dmitrii Tikhomirov 2017-10-09 11:51:32 +02:00 committed by Clebert Suconic
parent 16aa7ed6cf
commit 53efdbab49
1 changed files with 3 additions and 2 deletions

View File

@ -607,8 +607,9 @@ public class ServerConsumerImpl implements ServerConsumer, ReadyListener {
boolean performACK = lastConsumedAsDelivered;
try {
if (largeMessageDeliverer != null) {
largeMessageDeliverer.finish();
LargeMessageDeliverer pendingLargeMessageDeliverer = largeMessageDeliverer;
if (pendingLargeMessageDeliverer != null) {
pendingLargeMessageDeliverer.finish();
}
} catch (Throwable e) {
ActiveMQServerLogger.LOGGER.errorResttingLargeMessage(e, largeMessageDeliverer);