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:
Hiram R. Chirino 2007-02-19 19:37:10 +00:00
parent 80aba76121
commit 5b7d073b4e
1 changed files with 4 additions and 1 deletions

View File

@ -92,7 +92,10 @@ abstract public class Message extends BaseCommand implements MarshallAware, Mess
copy.producerId = producerId;
copy.transactionId = transactionId;
copy.destination = destination;
if( messageId!=null )
copy.messageId = messageId.copy();
else
copy.messageId = messageId;
copy.originalDestination = originalDestination;
copy.originalTransactionId = originalTransactionId;
copy.expiration = expiration;