mirror of https://github.com/apache/activemq.git
Protect against npe
git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-4.1@509309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
80aba76121
commit
5b7d073b4e
|
@ -92,7 +92,10 @@ abstract public class Message extends BaseCommand implements MarshallAware, Mess
|
|||
copy.producerId = producerId;
|
||||
copy.transactionId = transactionId;
|
||||
copy.destination = destination;
|
||||
copy.messageId = messageId.copy();
|
||||
if( messageId!=null )
|
||||
copy.messageId = messageId.copy();
|
||||
else
|
||||
copy.messageId = messageId;
|
||||
copy.originalDestination = originalDestination;
|
||||
copy.originalTransactionId = originalTransactionId;
|
||||
copy.expiration = expiration;
|
||||
|
|
Loading…
Reference in New Issue