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 270731

Summary: NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileComponent.<init>
Product: cnd Reporter: PolesApart
Component: Code ModelAssignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229253
Attachments: stacktrace

Description PolesApart 2017-05-24 20:19:52 UTC
This bug was originally marked as duplicate of bug 258071, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.2 (Build 201609300101)
VM: OpenJDK 64-Bit Server VM, 25.131-b11, OpenJDK Runtime Environment, 1.8.0_131-8u131-b11-1-b11
OS: Linux

User Comments:
PolesApart: editing c++ file




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.FileComponentMacros.<init>(FileComponentMacros.java:100)
   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:104)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.createAndCacheFullTokenStream(FileImpl.java:1258)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getTokenStream(FileImpl.java:1334)
Comment 1 PolesApart 2017-05-24 20:19:54 UTC
Created attachment 164398 [details]
stacktrace