History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OSMORC-101
Type: Exception Exception
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Robert F. Beeger
Reporter: Thomas Singer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Osmorc

NPE happens when moving the caret in a newly opened class

Created: 04 Jan 09 17:07   Updated: 10 Sep 09 14:46
Component/s: None
Affects Version/s: None
Fix Version/s: 0.12.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Idea build #9618, Osmorc version 0.11.0
Issue Links:
Duplicate
 
This issue is duplicated by:
OSMORC-108 null Normal Closed
OSMORC-107 null Normal Closed


 Description  « Hide
This NPE happens permanently now (even after restart) and makes working with Osmorc a pain.

java.lang.NullPointerException
at org.osmorc.impl.BundleManagerImpl.getResolvedRequires(BundleManagerImpl.java:215)
at org.osmorc.inspection.InvalidImportInspection.isRecursiveRequired(InvalidImportInspection.java:397)
at org.osmorc.inspection.InvalidImportInspection.isRecursiveRequired(InvalidImportInspection.java:419)
at org.osmorc.inspection.InvalidImportInspection.isBundleExportingContainingPackageTo(InvalidImportInspection.java:357)
at org.osmorc.inspection.InvalidImportInspection.isLibraryExportingPackageTo(InvalidImportInspection.java:327)
at org.osmorc.inspection.InvalidImportInspection.checkInvalidity(InvalidImportInspection.java:276)
at org.osmorc.inspection.InvalidImportInspection.isInvalid(InvalidImportInspection.java:224)
at org.osmorc.inspection.InvalidImportInspection$1.visitImportStatement(InvalidImportInspection.java:190)
at com.intellij.psi.impl.source.PsiImportStatementImpl.accept(PsiImportStatementImpl.java:10)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1$1.run(LocalInspectionsPass.java:10)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:3)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:4)
at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44)
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.JobImpl.scheduleAndWaitForResults(JobImpl.java:32)
at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:51)
at com.intellij.concurrency.JobUtil.invokeConcurrentlyForAll(JobUtil.java:27)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:31)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:227)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:185)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:15)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:4)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:31)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:18)
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 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:619)



 All   Comments   Work Log   Change History      Sort Order:
Robert F. Beeger - 07 Jan 09 18:59
This bug was not reproducible. I made the code more robust so that it cannot reoccur.