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:
parent
72b85b1938
commit
c1eba53b77
|
@ -735,6 +735,9 @@ public class FakeQueue extends CriticalComponentImpl implements Queue {
|
||||||
|
|
||||||
public void setPageSubscription(PageSubscription sub) {
|
public void setPageSubscription(PageSubscription sub) {
|
||||||
this.subs = sub;
|
this.subs = sub;
|
||||||
|
if (subs != null) {
|
||||||
|
sub.setQueue(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue