FELIX-6554 : Exception while starting Felix Configurator master
authorCarsten Ziegeler <cziegeler@apache.org>
Mon, 8 Aug 2022 11:30:52 +0000 (13:30 +0200)
committerCarsten Ziegeler <cziegeler@apache.org>
Mon, 8 Aug 2022 11:30:52 +0000 (13:30 +0200)
configurator/src/main/java/org/apache/felix/configurator/impl/Configurator.java

index b7bab7cd1e5b59780c5fe1793f8dc211deb466c6..929e3317c1d97b38991bf10d0d86057d4d823c27 100644 (file)
@@ -288,7 +288,7 @@ public class Configurator {
                 processAddBundle(b);
             }
         }
-        for(final long id : state.getKnownBundleIds()) {
+        for(final long id : new HashSet<>(state.getKnownBundleIds())) {
             if ( !ids.contains(id) ) {
                 processRemoveBundle(id);
             }