ARTEMIS-4135 mitigate NPE when browsing
This commit is contained in:
parent
8a974fe89c
commit
bd99a11780
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue