Cardinal-Components-API icon indicating copy to clipboard operation
Cardinal-Components-API copied to clipboard

Brittle config file parser

Open UpcraftLP opened this issue 3 months ago • 0 comments

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: https://github.com/Ladysnake/Cardinal-Components-API/blob/d328b40135a4f1d7b659a3655eb4cb8f31e65986/cardinal-components-base/src/main/java/org/ladysnake/cca/internal/base/ComponentsInternals.java#L59

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

UpcraftLP avatar Sep 13 '25 08:09 UpcraftLP