1
0
mirror of https://github.com/apache/activemq-artemis.git synced 2025-02-16 15:06:56 +00:00

ARTEMIS-2220 Fix PageCursorStressTest::testSimpleCursorWithFilter NPE

FakeQueue is not correctly setting the queue on its PageSubscription,
leading to fail the test due to NPEs when PageSubscription::getQueue
is being used.
This commit is contained in:
Francesco Nigro 2019-01-04 23:50:56 +01:00 committed by Clebert Suconic
parent 72b85b1938
commit c1eba53b77

@ -735,6 +735,9 @@ public class FakeQueue extends CriticalComponentImpl implements Queue {
public void setPageSubscription(PageSubscription sub) {
this.subs = sub;
if (subs != null) {
sub.setQueue(this);
}
}
@Override