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;
|
LinkedListIterator<MessageReference> messagesIterator = null;
|
||||||
|
|
||||||
private LinkedListIterator<PagedReference> getPagingIterator() {
|
private LinkedListIterator<PagedReference> getPagingIterator() {
|
||||||
if (pagingIterator == null) {
|
if (pagingIterator == null && pageSubscription != null) {
|
||||||
pagingIterator = pageSubscription.iterator(true);
|
pagingIterator = pageSubscription.iterator(true);
|
||||||
}
|
}
|
||||||
return pagingIterator;
|
return pagingIterator;
|
||||||
|
|
Loading…
Reference in New Issue