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:
Timothy A. Bish 2013-06-06 15:07:39 +00:00
parent bfed9df3b7
commit d338d8a0d6
1 changed files with 4 additions and 0 deletions

View File

@ -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());