Skip to content

Commit

Permalink
Fix ConcurrentModificationException
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
lptr committed Sep 26, 2014
1 parent 217713e commit f75ff06
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.google.common.base.Predicate;
import com.google.common.base.Throwables;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import com.prezi.gradle.pride.Module;
import com.prezi.gradle.pride.Pride;
import com.prezi.gradle.pride.PrideException;
Expand Down Expand Up @@ -49,7 +50,7 @@ public boolean apply(Module module) {
}

// Remove modules
for (Module module : modules) {
for (Module module : Lists.newArrayList(modules)) {
pride.removeModule(module.getName());
}
pride.save();
Expand Down

0 comments on commit f75ff06

Please sign in to comment.