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:
Gary Tully 2011-01-25 12:15:50 +00:00
parent cb9f176752
commit ed6a4c7067
1 changed files with 3 additions and 1 deletions

View File

@ -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() {