mirror of https://github.com/apache/activemq.git
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:
parent
e79239531e
commit
e1a2d7dc75
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue