avoid potential NPE

This commit is contained in:
jbertram 2015-01-30 13:35:16 -06:00
parent 9e214e9c43
commit fe11fb4c02
1 changed files with 4 additions and 4 deletions

View File

@ -1201,16 +1201,16 @@ public abstract class ClusterTestBase extends ServiceTestBase
ClientMessage message = holder.consumer.receive(WAIT_TIMEOUT);
message.acknowledge();
consumers[consumerIDs[count]].session.commit();
Assert.assertNotNull("consumer " + consumerIDs[count] + " did not receive message " + i, message);
Assert.assertEquals("consumer " + consumerIDs[count] + " message " + i,
i,
message.getObjectProperty(ClusterTestBase.COUNT_PROP));
message.acknowledge();
consumers[consumerIDs[count]].session.commit();
}
count++;