Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash parsing list entries #140

Open
wants to merge 3 commits into
base: multiloader/1.20.6
Choose a base branch
from

Conversation

PersonTheCat
Copy link

These changes resolve a crash when adding list entries due to NumberFormatExceptions (and other errors). I have chosen to resolve this by wrapping all parser functions with an error handler, guaranteeing that a crash can never occur, even with custom parsers. You may disagree with this or the choice to log suppressed exceptions, but I am open to feedback.

Confirmed fix in original project. No test coverage was needed (existing tests were failing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant