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 254110 - NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileComponent.<init>
Summary: NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileC...
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-03 15:45 UTC by Vladimir Kvashin
Modified: 2015-09-25 15:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218935


Attachments
stacktrace (3.73 KB, text/plain)
2015-08-03 15:46 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2015-08-03 15:45:58 UTC
Build: NetBeans IDE Dev (Build 201508030002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
vkvashin: Unfortunately I don't know what exactly I did when exception occurred. I tried to build ,y project (CL...ServiceTools) with debugging libs - switched configurations, made some changes in clang build directories, etc




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.spi.TokenStreamProducer.create(TokenStreamProducer.java:97)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.createAndCacheFullTokenStream(FileImpl.java:1177)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getTokenStream(FileImpl.java:1238)
Comment 1 Vladimir Kvashin 2015-08-03 15:46:00 UTC
Created attachment 155151 [details]
stacktrace
Comment 2 Vladimir Kvashin 2015-09-25 15:57:48 UTC
This means that FileContent.getFileComponent() returns null.

But what I see in log is lots of "No space left on device" exceptions, then reports about corrupted files from different NetBeans components.

Ideally we should process "No space left on device" situation gracefully, but let's be realistic... at least this is the matter of quite different bug.