Avoid crash if engine .ini file is corrupt

This commit is contained in:
Peter Osterlund 2020-05-27 19:59:41 +02:00
parent 999016889c
commit 219c07e769

View File

@ -79,7 +79,7 @@ public abstract class UCIEngineBase implements UCIEngine {
Properties iniOptions = new Properties();
try (FileInputStream is = new FileInputStream(optionsFile)) {
iniOptions.load(is);
} catch (IOException ignore) {
} catch (IOException|IllegalArgumentException ignore) {
}
Map<String,String> opts = new TreeMap<>();
for (Map.Entry<Object,Object> ent : iniOptions.entrySet()) {