From b2fd5d64560b06436fa72a689400d53d3a1e5ef4 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Wed, 9 Apr 2008 22:18:16 +0000 Subject: [PATCH] Fix getDestinations() git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646564 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/region/RegionBroker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java index f145e5f4aa..47ee75e362 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java @@ -314,9 +314,9 @@ public class RegionBroker implements Broker { } public ActiveMQDestination[] getDestinations() throws Exception { - ArrayList l; + ArrayList l; - l = new ArrayList(destinations.values()); + l = new ArrayList(getDestinationMap().keySet()); ActiveMQDestination rc[] = new ActiveMQDestination[l.size()]; l.toArray(rc);