Avoid NPE on testMultipleSenders null response
This commit is contained in:
parent
72bf5b7a0a
commit
7a5d1434fb
|
@ -158,8 +158,7 @@ public class ClusteredResetMockTest extends ActiveMQTestBase {
|
||||||
if (response == null) {
|
if (response == null) {
|
||||||
ex = new NullPointerException("expected value on " + getName());
|
ex = new NullPointerException("expected value on " + getName());
|
||||||
}
|
}
|
||||||
|
else if (!response.getGroupId().equals(code)) {
|
||||||
if (!response.getGroupId().equals(code)) {
|
|
||||||
ex = new IllegalStateException("expected code=" + code + " but it was " + response.getGroupId());
|
ex = new IllegalStateException("expected code=" + code + " but it was " + response.getGroupId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue