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

ModuleRootManager must not be null. may be the current class is not a project/module class. #45

Closed
GoogleCodeExporter opened this issue Apr 23, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

I keep getting this error in IDEA 12.1.6 Ultimate on Win7 Pro 64-bit:

ModuleRootManager must not be null. may be the current class is not a 
project/module class. check your project/module outpath configuration.: 
ModuleRootManager must not be null. may be the current class is not a 
project/module class. check your project/module outpath configuration.
org.twodividedbyzero.idea.findbugs.common.exception.FindBugsPluginException: 
ModuleRootManager must not be null. may be the current class is not a 
project/module class. check your project/module outpath configuration.
    at org.twodividedbyzero.idea.findbugs.common.util.IdeaUtilImpl.getProjectClasspath(IdeaUtilImpl.java:532)
    at org.twodividedbyzero.idea.findbugs.inspection.FindBugsInspection.initWorker(FindBugsInspection.java:285)
    at org.twodividedbyzero.idea.findbugs.inspection.FindBugsInspection.checkFile(FindBugsInspection.java:184)
    at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:142)
    at com.intellij.psi.impl.source.PsiCodeFragmentImpl.accept(PsiCodeFragmentImpl.java:178)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:412)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$300(LocalInspectionsPass.java:78)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:388)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:382)
    at com.intellij.concurrency.JobLauncherImpl$2$1.run(JobLauncherImpl.java:115)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    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:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    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:1182)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
    at com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:136)
    at com.intellij.concurrency.JobLauncherImpl.a(JobLauncherImpl.java:68)
    at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:110)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:398)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:220)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:136)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:58)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1182)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:345)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:145)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:142)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IllegalArgumentException: Argument 0 for @NotNull 
parameter of com/intellij/openapi/roots/ModuleRootManager.getInstance must not 
be null
    at com.intellij.openapi.roots.ModuleRootManager.getInstance(ModuleRootManager.java)
    at org.twodividedbyzero.idea.findbugs.common.util.IdeaUtilImpl.getProjectClasspath(IdeaUtilImpl.java:525)
    ... 43 more

Please tell me if I can provide any more info to help you fix this.

Original issue reported on code.google.com by alexande...@googlemail.com on 28 Oct 2013 at 9:34

@GoogleCodeExporter
Copy link
Author

does the class to analyse exits in an intellij module? my be you could provide 
me with a tiny idea test project where you are able to produce this error?

Original comment by andre.pf...@gmail.com on 28 Oct 2013 at 12:01

  • Changed state: InformationRequest

@GoogleCodeExporter
Copy link
Author

module could be null for VirtualFile - null test

Original comment by andre.pf...@gmail.com on 4 Dec 2013 at 1:31

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

old issues - verified -> change state to done

Original comment by andre.pf...@gmail.com on 19 Mar 2014 at 2:20

  • Changed state: Done

@GoogleCodeExporter
Copy link
Author

change state to verified. 

Original comment by andre.pf...@gmail.com on 19 Mar 2014 at 2:21

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant