avoid potential NPE
This commit is contained in:
parent
9e214e9c43
commit
fe11fb4c02
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue