Skip to content

Brittle config file parser #216

@UpcraftLP

Description

@UpcraftLP

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions