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

Don't crash when user uses unmatched local name prefix #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

awilkins
Copy link
Contributor

@awilkins awilkins commented May 28, 2020

GetVarAttributeCompletion doesn't account for the case where
a local. prefix doesn't match anything, which triggers
a panic on accessing the null pointer this produces.

Patch adds a simple check for nil which seems to fix this.

This has been the only reliability problem I've had with the
LSP. :-)

Fixes #62

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.

Segafault on GetVarAttributeCompletion
1 participant