resolve potential npe in test

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@812872 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-09-09 10:11:16 +00:00
parent e79239531e
commit e1a2d7dc75
1 changed files with 3 additions and 1 deletions

View File

@ -104,8 +104,10 @@ public class ProducerFlowControlSendFailTest extends ProducerFlowControlTest {
TextMessage msg;
for (int idx = 0; idx < 10; ++idx) {
msg = (TextMessage) consumer.receive(1000);
if (msg != null) {
msg.acknowledge();
}
}
keepGoing.set(false);
}