mirror of https://github.com/apache/activemq.git
fix potential NPE git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1490317 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bfed9df3b7
commit
d338d8a0d6
|
@ -514,6 +514,10 @@ class AmqpProtocolConverter {
|
|||
message.setProducerId(producerId);
|
||||
|
||||
MessageId messageId = message.getMessageId();
|
||||
if (messageId == null) {
|
||||
messageId = new MessageId();
|
||||
}
|
||||
|
||||
messageId.setProducerId(producerId);
|
||||
messageId.setProducerSequenceId(messageIdGenerator.getNextSequenceId());
|
||||
|
||||
|
|
Loading…
Reference in New Issue