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

onSignatureHelp stability fix #358

Merged
merged 2 commits into from
Mar 16, 2021
Merged

Conversation

TwitchBronBron
Copy link
Member

Fixes a crash when getClassFromMReference would throw an exception when previousToken was null.

#357 shows a stack trace where the code is crashing. I couldn't figure out the brightscript code to reproduce it, but I was able to write a unit test that causes the crash to occur, so I fixed it that way.
Fixes #357

@TwitchBronBron TwitchBronBron merged commit b5a72ca into master Mar 16, 2021
@TwitchBronBron TwitchBronBron deleted the onSignatureHelp-safer-access branch March 16, 2021 02:18
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.

error in onSignatureHelp: Cannot read property 'kind' of undefinedTypeError
2 participants