Cardinal Components API

Cardinal Components API

28M Downloads

Brittle config file parser

UpcraftLP opened this issue ยท 0 comments

commented

The config file parser cannot handle the config file existing, but containing invalid data.
This leads to a NumberFormatException here because the returned string is null:

if (Integer.parseInt(cfg.getProperty("config-version")) < configVersion) {

That exception is not caught and therefore will crash the game.