Merge pull request #172 from amitjoy/fix/npe/scr
[felix-dev.git] / 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);
             }