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) {
|
||||
ex = new NullPointerException("expected value on " + getName());
|
||||
}
|
||||
|
||||
if (!response.getGroupId().equals(code)) {
|
||||
else if (!response.getGroupId().equals(code)) {
|
||||
ex = new IllegalStateException("expected code=" + code + " but it was " + response.getGroupId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue