]> source.dussan.org Git - pf4j.git/commitdiff
Fix #250
authorDecebal Suiu <decebal.suiu@gmail.com>
Thu, 22 Nov 2018 20:33:09 +0000 (22:33 +0200)
committerDecebal Suiu <decebal.suiu@gmail.com>
Thu, 22 Nov 2018 20:33:09 +0000 (22:33 +0200)
pf4j/src/main/java/org/pf4j/DependencyResolver.java

index 26999bd757b3b82222681b36e878e3d3a92d9a23..1e863142b7902399a7899bb1a740a00a8c09b165 100644 (file)
@@ -88,7 +88,7 @@ public class DependencyResolver {
             String pluginId = plugin.getPluginId();
             String existingVersion = plugin.getVersion();
 
-            List<String> dependents = getDependents(pluginId);
+            List<String> dependents = new ArrayList<>(getDependents(pluginId));
             while (!dependents.isEmpty()) {
                 String dependentId = dependents.remove(0);
                 PluginDescriptor dependent = pluginByIds.get(dependentId);