aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2018-11-22 22:33:09 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2018-11-22 22:33:09 +0200
commit326eacc4439430223cc001d805ff4cec2e2642b0 (patch)
tree98459d0d1d2da9d7c0207ea2b841f29eefcd09b0
parent74865ee6da538e7133a1860124613e645388cd6b (diff)
downloadpf4j-326eacc4439430223cc001d805ff4cec2e2642b0.tar.gz
pf4j-326eacc4439430223cc001d805ff4cec2e2642b0.zip
Fix #250
-rw-r--r--pf4j/src/main/java/org/pf4j/DependencyResolver.java2
1 files changed, 1 insertions, 1 deletions
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<String> dependents = getDependents(pluginId);
+ List<String> dependents = new ArrayList<>(getDependents(pluginId));
while (!dependents.isEmpty()) {
String dependentId = dependents.remove(0);
PluginDescriptor dependent = pluginByIds.get(dependentId);