mirror of https://github.com/apache/activemq.git
Avoid NPE in MasterBroker.processDispatch... a null message is sent to the client to signal end of queue browse.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@399710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fccef1010d
commit
6e329f7d9e
|
@ -285,6 +285,7 @@ public class MasterBroker extends InsertableMutableBrokerFilter{
|
|||
mdn.setConsumerId(messageDispatch.getConsumerId());
|
||||
mdn.setDeliverySequenceId(messageDispatch.getDeliverySequenceId());
|
||||
mdn.setDestination(messageDispatch.getDestination());
|
||||
if( messageDispatch.getMessage() != null )
|
||||
mdn.setMessageId(messageDispatch.getMessage().getMessageId());
|
||||
sendAsyncToSlave(mdn);
|
||||
super.processDispatch(messageDispatch);
|
||||
|
|
Loading…
Reference in New Issue