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 200911160201) VM: Java HotSpot(TM) 64-Bit Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Linux, 2.6.27.38-170.2.113.fc10.x86_64, amd64 User Comments: jsedek: I just placed a break point at method declaration line rogerrhody: Changed to an open jsf 2 page (xhtml) by selecting the tab in the editor. Seem to get these NullPointerExceptions every time I change pages in the editor, I am primarily writing jsf 2 but I also have some persistence classes open and some managed beans. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$5.run(EditorContextImpl.java:836) 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) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:99) at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.getMethodLineNumbers(EditorContextImpl.java:831)
Created attachment 91071 [details] stacktrace
This is a regression caused by http://hg.netbeans.org/main-silver?cmd=changeset;node=16b5c55166cb We have to fix it in 6.8, the NPE could be thrown often and be quite annoying. The fix is not difficult, methods in EditorContextImpl should check whether a given file object is a java source.
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=162027
Fixed in changeset 153771:236e034e97bd http://hg.netbeans.org/main/rev/236e034e97bd
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.
verified. NetBeans IDE Dev (Build 200911171401)