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

NullPointerException when creating patch #16

Closed
ggili opened this issue Feb 18, 2013 · 2 comments
Closed

NullPointerException when creating patch #16

ggili opened this issue Feb 18, 2013 · 2 comments

Comments

@ggili
Copy link
Contributor

ggili commented Feb 18, 2013

Somehow sonar cache.getSrouce is called when I go to Changes->create patch.

IntelliJ 12.0.4 with the IntelliJ Sonar Plugin v1.0.4.

Please find the call stack below.

Maybe I'll have time to check it this evening, not sure. Just I'm reporting

null
java.lang.NullPointerException
at org.sonar.ide.intellij.utils.SonarCache.getSource(SonarCache.java:42)
at org.sonar.ide.intellij.inspection.SonarViolationInspection$2.compute(SonarViolationInspection.java:53)
at org.sonar.ide.intellij.inspection.SonarViolationInspection$2.compute(SonarViolationInspection.java:50)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:945)
at org.sonar.ide.intellij.inspection.SonarViolationInspection.checkFile(SonarViolationInspection.java:50)
at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:143)
at com.intellij.psi.PsiElementVisitor.visitPlainTextFile(PsiElementVisitor.java:40)
at com.intellij.psi.impl.source.PsiPlainTextFileImpl.accept(PsiPlainTextFileImpl.java:36)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:411)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:369)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$100(LocalInspectionsPass.java:78)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:328)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:306)
at com.intellij.concurrency.JobLauncherImpl$2$1.run(JobLauncherImpl.java:115)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:232)
at com.intellij.concurrency.JobLauncherImpl$2.process(JobLauncherImpl.java:113)
at com.intellij.concurrency.JobLauncherImpl$1.run(JobLauncherImpl.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1155)
at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

@aheusingfeld
Copy link
Collaborator

duplicate to #17

@gshakhn gshakhn closed this as completed Feb 18, 2013
@gshakhn
Copy link
Owner

gshakhn commented Feb 18, 2013

More discussion on other issue, so closing this one.

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

3 participants