Avoid NPE on testMultipleSenders null response

This commit is contained in:
Ville Skyttä 2016-07-28 20:00:02 +03:00 committed by Clebert Suconic
parent 72bf5b7a0a
commit 7a5d1434fb
1 changed files with 1 additions and 2 deletions

View File

@ -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());
}
}