diff --git a/updater/src/com/intellij/updater/PatchFileCreator.java b/updater/src/com/intellij/updater/PatchFileCreator.java index 679e6d8de215..8e7090e72586 100644 --- a/updater/src/com/intellij/updater/PatchFileCreator.java +++ b/updater/src/com/intellij/updater/PatchFileCreator.java @@ -30,7 +30,7 @@ public class PatchFileCreator { List actions = patchInfo.getActions(); File olderDir = new File(spec.getOldFolder()); File newerDir = new File(spec.getNewFolder()); - ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() - 1); + ExecutorService executor = Executors.newFixedThreadPool(Math.max(Runtime.getRuntime().availableProcessors() - 1, 1)); Map> tasks = new ConcurrentHashMap<>(); for (int i = 0; i < actions.size(); i++) {