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

OF-2911: Catch NPE in Parser that is in an invalid state #2614

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

guusdk
Copy link
Member

@guusdk guusdk commented Nov 20, 2024

When the XML LightweightParser encounters invalid data, it sets itself in an invalid state. It doesn't expect to be called again.

If it is called again, a confusing null pointer exception is thrown. In this commit, that has been replaced by a more explicit exception.

When the XML LightweightParser encounters invalid data, it sets itself in an invalid state. It doesn't expect to be called again.

If it is called again, a confusing null pointer exception is thrown. In this commit, that has been replaced by a more explicit exception.
@guusdk guusdk requested a review from akrherz November 20, 2024 19:58
@akrherz akrherz merged commit e651adf into igniterealtime:main Nov 20, 2024
17 checks passed
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.

2 participants