ARTEMIS-4135 mitigate NPE when browsing

This commit is contained in:
Justin Bertram 2023-01-17 10:08:00 -06:00
parent 8a974fe89c
commit bd99a11780
1 changed files with 1 additions and 1 deletions

View File

@ -4382,7 +4382,7 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
LinkedListIterator<MessageReference> messagesIterator = null;
private LinkedListIterator<PagedReference> getPagingIterator() {
if (pagingIterator == null) {
if (pagingIterator == null && pageSubscription != null) {
pagingIterator = pageSubscription.iterator(true);
}
return pagingIterator;