mirror of https://github.com/apache/activemq.git
fix null pointer in test case
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@558052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d5bb84a47
commit
cfdc5e3de3
|
@ -1604,10 +1604,12 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Response processProducerAck(ProducerAck pa) throws Exception{
|
public Response processProducerAck(ProducerAck pa) throws Exception{
|
||||||
|
if(pa!=null&&pa.getProducerId()!=null){
|
||||||
ActiveMQMessageProducer producer=producers.get(pa.getProducerId());
|
ActiveMQMessageProducer producer=producers.get(pa.getProducerId());
|
||||||
if(producer!=null){
|
if(producer!=null){
|
||||||
producer.onProducerAck(pa);
|
producer.onProducerAck(pa);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue