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

Wrap possible AssertionError from Ion class #418

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

arthurscchan
Copy link
Contributor

This PR fixes #417 by wrapping the unexpected AssertionError with the general JsonParseException to avoid throwing AssertionError directly to the users when invalid input is provided.

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
Copy link
Member

@cowtowncoder cowtowncoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cowtowncoder cowtowncoder merged commit be8d29e into FasterXML:2.17 Dec 6, 2023
4 checks passed
@arthurscchan arthurscchan deleted the fix-assertion branch January 17, 2024 04:56
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.

IonReader classes contain assert statement which could throw unexpected AssertionError
2 participants