mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 11:31:33 +01:00
Avoid crash if engine .ini file is corrupt
This commit is contained in:
parent
999016889c
commit
219c07e769
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user