activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r509309 - /activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
Date Mon, 19 Feb 2007 19:37:11 GMT
Author: chirino
Date: Mon Feb 19 11:37:10 2007
New Revision: 509309

URL: http://svn.apache.org/viewvc?view=rev&rev=509309
Log:
Protect against npe

Modified:
    activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java

Modified: activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
URL: http://svn.apache.org/viewvc/activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java?view=diff&rev=509309&r1=509308&r2=509309
==============================================================================
--- activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
(original)
+++ activemq/branches/activemq-4.1/activemq-core/src/main/java/org/apache/activemq/command/Message.java
Mon Feb 19 11:37:10 2007
@@ -92,7 +92,10 @@
         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;



Mime
View raw message