ARTEMIS-3872 fix NPE

This commit is contained in:
Justin Bertram 2022-08-25 15:15:59 -05:00
parent c99d061784
commit f88381430c
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 1 additions and 1 deletions

View File

@ -2184,7 +2184,7 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
txCount = 0; txCount = 0;
} }
List<MessageReference> cancelled = scheduledDeliveryHandler.cancel(ref -> filter1.match(ref.getMessage())); List<MessageReference> cancelled = scheduledDeliveryHandler.cancel(ref -> filter1 == null ? true : filter1.match(ref.getMessage()));
for (MessageReference messageReference : cancelled) { for (MessageReference messageReference : cancelled) {
messageAction.actMessage(tx, messageReference); messageAction.actMessage(tx, messageReference);
count++; count++;