check messageId isn't null before trying to copy it

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@478292 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-11-22 19:16:52 +00:00
parent 5e1da9a9a6
commit 41b9089ac3
1 changed files with 1 additions and 1 deletions

View File

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