mirror of https://github.com/apache/activemq.git
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
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1063248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb9f176752
commit
ed6a4c7067
|
@ -48,7 +48,9 @@ public abstract class ActiveMQTempDestination extends ActiveMQDestination {
|
|||
}
|
||||
|
||||
public void delete() throws JMSException {
|
||||
connection.deleteTempDestination(this);
|
||||
if (connection != null) {
|
||||
connection.deleteTempDestination(this);
|
||||
}
|
||||
}
|
||||
|
||||
public ActiveMQConnection getConnection() {
|
||||
|
|
Loading…
Reference in New Issue