This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 091110-2ed0c0f492b5) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows XP, 5.1, x86 Stacktrace: java.lang.NullPointerException: The result parameter cannot be null at org.openide.util.Parameters.notNull(Parameters.java:86) at org.netbeans.api.java.source.CompilationController.get(CompilationController.java:81) at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$4.run(EditorContextImpl.java:709) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
Created attachment 91081 [details] stacktrace
This should be fixed together with bug #176875 IMHO, it's related.
See also NPE at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$5.run(EditorContextImpl.java:835) reported by bug 176908.
*** Bug 176908 has been marked as a duplicate of this bug. ***
Fixed in changeset 153771:236e034e97bd http://hg.netbeans.org/main/rev/236e034e97bd
Created attachment 91128 [details] stacktrace
Integrated into 'main-golden', will be available in build *200911170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/236e034e97bd User: Daniel Prusa <dprusa@netbeans.org> Log: #176875, #176887: Check if the passed file object is Java source.
Fix reviewed, also verified in trunk that no exception is thrown. I've submitted bug #176980 for the Javadoc of ResultIterator.getParserResult() to mention that "null" can be returned.
I'm no longer able to reproduce this problem in trunk build 200911241400 nor in RC1 (build 200911241027) => Verified