FELIX-1914: Making sure that bundles only appear once in every branch of the tree

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@888728 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java b/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java
index 17d0382..aa5e210 100644
--- a/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java
+++ b/karaf/shell/dev/src/main/java/org/apache/felix/karaf/shell/dev/ShowBundleTree.java
@@ -145,7 +145,8 @@
      */
     private void createNode(Node<Bundle> node, Set<Bundle> trail) {
         Bundle bundle = node.getValue();
-        Collection<Bundle> exporters = getWiredBundles(bundle).values();
+        Collection<Bundle> exporters = new HashSet<Bundle>();
+        exporters.addAll(getWiredBundles(bundle).values());
 
         for (Bundle exporter : exporters) {
             if (trail.contains(exporter)) {