From: David ‘Bombe’ Roden Date: Fri, 1 Jan 2010 20:02:27 +0000 (+0100) Subject: Fix a ConcurrentModificationException. X-Git-Tag: 0.9~39 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=79a8ea771270eecab2f959fcec7b7e89a449619d;p=jSite.git Fix a ConcurrentModificationException. --- diff --git a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java index 00a9cee..94a93b1 100644 --- a/src/de/todesbaum/jsite/gui/ProjectFilesPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectFilesPage.java @@ -499,7 +499,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis } }); Set entriesToRemove = new HashSet(); - Iterator filenames = project.getFileOptions().keySet().iterator(); + Iterator filenames = new HashSet(project.getFileOptions().keySet()).iterator(); while (filenames.hasNext()) { String filename = filenames.next(); if (!files.contains(filename)) {