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

NPE in SyntaxView.viewToModel #545

Open
ovna01 opened this issue May 7, 2024 · 0 comments
Open

NPE in SyntaxView.viewToModel #545

ovna01 opened this issue May 7, 2024 · 0 comments
Labels

Comments

@ovna01
Copy link

ovna01 commented May 7, 2024

Description
In SyntaxView method viewToModel, the call to getTokenListForLine may return null and the following usage of the returned tokenList an NullPointerException. (line 975 and 977).

Steps to Reproduce
We have got NPE in some cases, but have no way (yet) to reproduce this.

Expected behavior
No NPE

Actual behavior
NPE may occur

Java version
Java 17

Additional context
Possible solution - add a null check before calling tokenList.getListOffset

@ovna01 ovna01 added the bug label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant