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: don't attempt to update language client config if there is no language client [IDE-844] #249

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

andrewrobinsonhodges-snyk
Copy link
Contributor

Description

When cancelling the authentication wizard, the wizard attempts to reset preferences and update the language client config. If this happens before the CLI has downloaded, the language client config update fails with an null pointer exception, which interrupts the cancellation and so the wizard never closes.

This fix checks that the client is not null before attempting to update it.

Checklist

  • [n/a] Tests added and all succeed
  • [n/a] Linted
  • [n/a] CHANGELOG.md updated
  • [n/a] README.md updated, if user-facing

Screenshots / GIFs

(Just imagine the space where the authentication wizard used to be 😜)

@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk requested a review from a team as a code owner December 18, 2024 14:53
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk merged commit 0b93830 into main Dec 19, 2024
7 checks passed
@andrewrobinsonhodges-snyk andrewrobinsonhodges-snyk deleted the fix/auth-wizard-cancel-button branch December 19, 2024 11:06
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