Fix malformd version settings leading to unmodifiable configuration

This commit is contained in:
huangyuhui 2018-01-28 15:03:18 +08:00
parent ccb1ff7f0e
commit f7aeef3ffc

View File

@ -131,6 +131,7 @@ public class HMCLGameRepository extends DefaultGameRepository {
initVersionSetting(id, versionSetting);
} catch (Exception ex) {
// If [JsonParseException], [IOException] or [NullPointerException] happens, the json file is malformed and needed to be recreated.
initVersionSetting(id, new VersionSetting());
}
}