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
|
@ -1603,13 +1603,15 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Response processProducerAck(ProducerAck pa) throws Exception {
|
public Response processProducerAck(ProducerAck pa) throws Exception{
|
||||||
ActiveMQMessageProducer producer = producers.get(pa.getProducerId());
|
if(pa!=null&&pa.getProducerId()!=null){
|
||||||
if( producer!=null ) {
|
ActiveMQMessageProducer producer=producers.get(pa.getProducerId());
|
||||||
producer.onProducerAck(pa);
|
if(producer!=null){
|
||||||
}
|
producer.onProducerAck(pa);
|
||||||
return null;
|
}
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Response processBrokerInfo(BrokerInfo info) throws Exception {
|
public Response processBrokerInfo(BrokerInfo info) throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue