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,7 +104,9 @@ public class ProducerFlowControlSendFailTest extends ProducerFlowControlTest {
|
||||||
TextMessage msg;
|
TextMessage msg;
|
||||||
for (int idx = 0; idx < 10; ++idx) {
|
for (int idx = 0; idx < 10; ++idx) {
|
||||||
msg = (TextMessage) consumer.receive(1000);
|
msg = (TextMessage) consumer.receive(1000);
|
||||||
msg.acknowledge();
|
if (msg != null) {
|
||||||
|
msg.acknowledge();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
keepGoing.set(false);
|
keepGoing.set(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue