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.
Create Application1 and go to #include stdio.h close Application1, close IDE remove Application1 from disk start IDE create Application2 and go to #include stdio.h => NPE java.lang.NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getStartFile(ProjectBase.java:1572) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getStartEntryInfo(ProjectBase.java:1486) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.restorePreprocHandler(ProjectBase.java:1511) at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getPreprocHandler(ProjectBase.java:810) at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getPreprocHandler(FileImpl.java:230) at org.netbeans.modules.cnd.modelimpl.impl.services.FileInfoQueryImpl.getUnusedCodeBlocks(FileInfoQueryImpl.java:81) at org.netbeans.modules.cnd.highlight.semantic.ifdef.InactiveCodeHighlighter.getBlocks(InactiveCodeHighlighter.java:142) at org.netbeans.modules.cnd.highlight.semantic.ifdef.InactiveCodeHighlighter.getBlocks(InactiveCodeHighlighter.java:136) at org.netbeans.modules.cnd.highlight.semantic.ifdef.InactiveCodeHighlighter.update(InactiveCodeHighlighter.java:125) at org.netbeans.modules.cnd.highlight.semantic.ifdef.InactiveCodeHighlighter.access$100(InactiveCodeHighlighter.java:71) at org.netbeans.modules.cnd.highlight.semantic.ifdef.InactiveCodeHighlighter$2.run(InactiveCodeHighlighter.java:159) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
I have fixed NPE part, but problem remains: correctly restore preprocessor state for file parsed in removed project context => P3 for investigation cvs log: Checking in ProjectBase.java; /shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ProjectBase.java,v <-- ProjectBase.java new revision: 1.46; previous revision: 1.45 done
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. We apologize for any inconvenience. Thank you. The NetBeans Team