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 258071 - NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileComponent.<init>
Summary: NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileC...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 262152 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-20 00:53 UTC by darwin_te
Modified: 2016-07-19 13:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222618


Attachments
stacktrace (2.28 KB, text/plain)
2016-02-20 00:53 UTC, darwin_te
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darwin_te 2016-02-20 00:53:06 UTC
Build: NetBeans IDE Dev (Build 20160219-f0c0338d7462)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.72-b15, Java(TM) SE Runtime Environment, 1.8.0_72-b15
OS: Linux

User Comments:
darwin_te: I just opened my project and null exception occurred.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.modelimpl.content.file.FileComponent.<init>(FileComponent.java:69)
   at org.netbeans.modules.cnd.modelimpl.content.file.FileComponentDeclarations.<init>(FileComponentDeclarations.java:119)
   at org.netbeans.modules.cnd.modelimpl.content.file.FileContent.getHardReferenceBasedCopy(FileContent.java:180)
   at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankTokenStreamProducer.getMacroUsages(ClankTokenStreamProducer.java:101)
   at org.netbeans.modules.cnd.modelimpl.parser.clank.ClankFileInfoQuerySupport.getMacroUsages(ClankFileInfoQuerySupport.java:82)
   at org.netbeans.modules.cnd.modelimpl.impl.services.FileInfoQueryImpl.getMacroUsages(FileInfoQueryImpl.java:339)
Comment 1 darwin_te 2016-02-20 00:53:12 UTC
Created attachment 158578 [details]
stacktrace
Comment 2 Alexander Simon 2016-07-13 11:20:57 UTC
*** Bug 262152 has been marked as a duplicate of this bug. ***
Comment 3 Quality Engineering 2016-07-14 01:52:22 UTC
Integrated into 'main-silver', will be available in build *201607140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/47215e36d125
User: Alexander Simon <alexvsimon@netbeans.org>
Log: work around the bugs #258001 and #258071.
- do not call methods on this in FileImpl constructor