From 326eacc4439430223cc001d805ff4cec2e2642b0 Mon Sep 17 00:00:00 2001 From: Decebal Suiu Date: Thu, 22 Nov 2018 22:33:09 +0200 Subject: [PATCH] Fix #250 --- pf4j/src/main/java/org/pf4j/DependencyResolver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5