summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2015-10-29 15:58:27 +0100
committerSimon Rettberg2015-10-29 15:58:27 +0100
commitdbbcb78045134766fa4867b26a72016edcc217fe (patch)
tree64e75ae1343cf757b17cf1221a552bbde23c2916
parent[PortScan] Try to verify remote certificate (diff)
downloadtmlite-bwlp-dbbcb78045134766fa4867b26a72016edcc217fe.tar.gz
tmlite-bwlp-dbbcb78045134766fa4867b26a72016edcc217fe.tar.xz
tmlite-bwlp-dbbcb78045134766fa4867b26a72016edcc217fe.zip
[RecompressArchive] Fix potential concurrent modification case
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/RecompressArchive.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/RecompressArchive.java b/src/main/java/org/openslx/taskmanager/tasks/RecompressArchive.java
index 1b5cf8a..0bd892f 100644
--- a/src/main/java/org/openslx/taskmanager/tasks/RecompressArchive.java
+++ b/src/main/java/org/openslx/taskmanager/tasks/RecompressArchive.java
@@ -8,6 +8,7 @@ import java.nio.file.Paths;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
+import java.util.concurrent.CopyOnWriteArrayList;
import org.apache.commons.compress.archivers.ArchiveEntry;
import org.apache.commons.compress.archivers.ArchiveException;
@@ -191,7 +192,7 @@ public class RecompressArchive extends AbstractTask
};
protected ErrorCode errorCode = null;
- protected List<String> warnings = null;
+ protected List<String> warnings = new CopyOnWriteArrayList<>();
public static class Entry
{