diff --git a/pf4j/src/main/java/org/pf4j/DependencyResolver.java b/pf4j/src/main/java/org/pf4j/DependencyResolver.java index 26999bd..1e86314 100644 --- a/pf4j/src/main/java/org/pf4j/DependencyResolver.java +++ b/pf4j/src/main/java/org/pf4j/DependencyResolver.java @@ -88,7 +88,7 @@ public class DependencyResolver { String pluginId = plugin.getPluginId(); String existingVersion = plugin.getVersion(); - List dependents = getDependents(pluginId); + List dependents = new ArrayList<>(getDependents(pluginId)); while (!dependents.isEmpty()) { String dependentId = dependents.remove(0); PluginDescriptor dependent = pluginByIds.get(dependentId);