activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r478292 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java
Date Wed, 22 Nov 2006 19:16:53 GMT
Author: rajdavies
Date: Wed Nov 22 11:16:52 2006
New Revision: 478292

URL: http://svn.apache.org/viewvc?view=rev&rev=478292
Log:
check messageId isn't null before trying to copy it

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java?view=diff&rev=478292&r1=478291&r2=478292
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/Message.java
Wed Nov 22 11:16:52 2006
@@ -92,7 +92,7 @@
         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;



Mime
View raw message