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 null reference initialising output panel fonts #925

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

citizenmatt
Copy link
Member

Fixes an exception that would prevent debugging in Rider. The Debug tool window would create an Editor instance during initialisation and set the font size. If the font size was changed (e.g. the editor was zoomed), then IdeaVim's font property change listener would try to hide the ex command line and the output panel. Unfortunately, this forced creation of the output panel, which would try to position itself, but because the Editor instance hadn't been added to the UI, the editor component's root pane would be null, and lead to a NullPointerException.

This PR adds a null check to avoid the exception, and also avoids creating the panel just to make sure it's hidden.

Fixes VIM-3515

@AlexPl292
Copy link
Member

Thank you for the fix!

@AlexPl292 AlexPl292 merged commit 6b4e4ba into JetBrains:master Jul 3, 2024
4 checks passed
@citizenmatt citizenmatt deleted the bugfix/VIM-3515 branch July 3, 2024 07:44
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