-
Notifications
You must be signed in to change notification settings - Fork 38
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
prevent throwing null pointer exception #46
Comments
Amazingly, it's this function. It has a double colon and a slash but this regex can still fail. I've tentatively changed it to the following:
except i'm not sure how at this point to return no completion candidates. But it's guarding against this regex failing or making the guards going into this (the cond over |
Thanks for reporting! Your fix looks correct. You can just return nil or an empty list for no candidates. So it might look like:
Do you wish to create a pull request with this fix? |
I'm at work and won't be able to do it until evening. If it's no big deal for you go ahead, otherwise i'll do it tonight. About the |
No hurry, create it whenever you have time. It's just that since you've discovered the bug and fixed it, it makes more sense that the commit comes from you :).
|
Fixed by #47. |
Got an issue popping up in CIDER with compliment throwing a null pointer exception by just typing
::/
and the autocomplete functionality throwing:clojure-emacs/cider#1972
I've created the following test that "tests" it to demonstrate the error programatically and I'm starting to look into the codebase but i'm not too familiar with it.
The text was updated successfully, but these errors were encountered: