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
NullPointerException calling com.intellij.psi.PsiElement.getReferences() #41
Comments
@wfhartford Please provide toml file or sample project, This error appears to be caused by the following line. Thanks! val references = if (element.lastChild.references.mapNotNull(PsiReference::resolve).isEmpty()) {
element.lastChild.firstChild.references
} else element.lastChild.references |
Hi, sorry for the delay. I'm still getting this error, but I never notice it when it happens, only some time after I've been editing the toml file. I wonder if it's caused by the plugin parsing the toml file in an invalid state. Other than the error reported by IntelliJ, it doesn't seem like this is causing any serious problems. I'm getting all the features I expect from the plugin and not being prevented from doing anything. |
I've been getting this error again today and haven't been editing the |
Thanks,I‘ll debug the issue. |
Would you mind providing the build.gradle(.kts) file? |
Unfortunately, I can't. This is a multi-module project so there are a handful of build build along with a few proprietary plugins. My employer does not want all those details shared. I'd be happy to answer any questions you might have though. |
Reported by IntelliJ:
The text was updated successfully, but these errors were encountered: