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

NPE in JavaScript resolution #1884

Closed
cursive-ide opened this issue Nov 8, 2017 · 0 comments
Closed

NPE in JavaScript resolution #1884

cursive-ide opened this issue Nov 8, 2017 · 0 comments
Milestone

Comments

@cursive-ide
Copy link
Owner

java.lang.NullPointerException
at cursive.psi.impl.synthetic.ClJavascriptAlias.getTarget (ClJavascriptAlias.java:132)
at cursive.psi.impl.synthetic.ClJavascriptAlias.getNavigationElement (ClJavascriptAlias.java:104)
at com.intellij.psi.impl.light.LightElement.isValid (LightElement.java:111)
at com.intellij.codeInsight.TargetElementUtil.isAcceptableReferencedElement (TargetElementUtil.java:270)

Repro steps from Slack:

In (.getElementById js/document "app"), press CTRL and hover over .getElementById until "show usages of symbol 'getElementById'" pops up.

While keeping CTRL pressed move the mouse to the right and hover over document. The NPE gets thrown when the new document pop up is shown.

@cursive-ide cursive-ide added this to the 1.6.2-eap3 milestone Nov 8, 2017
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

No branches or pull requests

1 participant