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 NullPointerException on while loop without block #273

Merged
merged 2 commits into from
Jul 26, 2024

Conversation

pwrightcertinia
Copy link
Contributor

Issue

Code was assuming the statement always existed, but parser allows both while and for loops to have condition only. This is already handled correctly by ForStatement so replicated this for WhileStatement.

@pwrightcertinia pwrightcertinia merged commit 8c4bb76 into main Jul 26, 2024
1 check passed
@pwrightcertinia pwrightcertinia deleted the empty-while-null-pointer branch July 26, 2024 12:59
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