8000 Fix NPE in Status#resize when supported is false (fixes #1191) by gnodet · Pull Request #1204 · jline/jline3 · GitHub
[go: up one dir, main page]

Skip to content

Fix NPE in Status#resize when supported is false (fixes #1191) #1204

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

gnodet
Copy link
Member
@gnodet gnodet commented Apr 25, 2025

This PR fixes a NullPointerException that occurs in Status#resize when the 'supported' flag is false. In this case, the 'display' field is not initialized, but methods like resize() and close() were trying to use it without checking if it's null.\n\nThe fix adds appropriate checks for the 'supported' flag before accessing the display object in these methods.

@gnodet gnodet added this to the 3.29.1 milestone Apr 25, 2025
@gnodet gnodet merged commit 49d9307 into jline:master Apr 25, 2025
9 checks passed
@gnodet gnodet deleted the resize-npe branch May 9, 2025 18:57
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
0