activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1063248 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
Date Tue, 25 Jan 2011 12:15:50 GMT
Author: gtully
Date: Tue Jan 25 12:15:50 2011
New Revision: 1063248

URL: http://svn.apache.org/viewvc?rev=1063248&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3038 - fix unit test regression, a temp dest may
have a null conneciton if it was added from an advisory

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java?rev=1063248&r1=1063247&r2=1063248&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTempDestination.java
Tue Jan 25 12:15:50 2011
@@ -48,7 +48,9 @@ public abstract class ActiveMQTempDestin
     }
 
     public void delete() throws JMSException {
-        connection.deleteTempDestination(this);
+        if (connection != null) {
+            connection.deleteTempDestination(this);
+        }
     }
 
     public ActiveMQConnection getConnection() {



Mime
View raw message