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.

Bug 117797 - Missed preprocessor state for library header
Summary: Missed preprocessor state for library header
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 15:37 UTC by Vladimir Voskresensky
Modified: 2009-12-21 06:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2007-10-04 15:37:33 UTC
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)
Comment 1 Vladimir Voskresensky 2007-10-04 15:40:51 UTC
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
Comment 2 Quality Engineering 2009-12-21 06:22:53 UTC
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