ARTEMIS-332 Fixing possible NPE on Paging

This commit is contained in:
Clebert Suconic 2016-01-13 14:07:07 -05:00
parent 74245a58bd
commit b82808797e
1 changed files with 2 additions and 2 deletions

View File

@ -1271,9 +1271,9 @@ final class PageSubscriptionImpl implements PageSubscription {
deliveredCount.incrementAndGet();
PagedReference delivery = currentDelivery;
if (delivery != null) {
PageCursorInfo info = PageSubscriptionImpl.this.getPageInfo(currentDelivery.getPosition());
PageCursorInfo info = PageSubscriptionImpl.this.getPageInfo(delivery.getPosition());
if (info != null) {
info.remove(currentDelivery.getPosition());
info.remove(delivery.getPosition());
}
}
}