Fix a ConcurrentModificationException.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 1 Jan 2010 20:02:27 +0000 (21:02 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 1 Jan 2010 20:02:27 +0000 (21:02 +0100)
src/de/todesbaum/jsite/gui/ProjectFilesPage.java

index 00a9cee..94a93b1 100644 (file)
@@ -499,7 +499,7 @@ public class ProjectFilesPage extends TWizardPage implements ActionListener, Lis
                                }
                        });
                        Set<String> entriesToRemove = new HashSet<String>();
-                       Iterator<String> filenames = project.getFileOptions().keySet().iterator();
+                       Iterator<String> filenames = new HashSet<String>(project.getFileOptions().keySet()).iterator();
                        while (filenames.hasNext()) {
                                String filename = filenames.next();
                                if (!files.contains(filename)) {