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 247103

Summary: NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.Instantiation.getKind
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal CC: alexvsimon, PolesApart, tbrunhoff, vkvashin
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 211794
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description Exceptions Reporter 2014-09-14 15:38:54 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Linux

User Comments:
GUEST: Editing C++ source code.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.modelimpl.csm.Instantiation.getKind(Instantiation.java:357)
   at org.netbeans.modules.cnd.api.model.util.CsmKindUtilities.isVariable(CsmKindUtilities.java:539)
   at org.netbeans.modules.cnd.api.model.util.CsmKindUtilities.isField(CsmKindUtilities.java:620)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticEntitiesProvider$FastFieldCodeProvider.getBlocks(SemanticEntitiesProvider.java:143)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.updateImpl(SemanticHighlighter.java:204)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.access$500(SemanticHighlighter.java:90)
Comment 1 Exceptions Reporter 2014-09-14 15:38:56 UTC
Created attachment 149200 [details]
stacktrace
Comment 2 tbrunhoff 2014-11-14 05:09:51 UTC
Created attachment 150479 [details]
stacktrace

editing.
Comment 3 Exceptions Reporter 2015-09-21 12:21:04 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211794
Comment 4 Vladimir Kvashin 2015-09-23 20:40:06 UTC
5 duplicates => P2
Comment 5 petrk 2015-09-24 12:24:08 UTC
The only reason of the bug is because declaration cannot be restored after reading instantiation from repository: see constructor Instantiation(RepositoryDataInput input) in Instantiation.java.
Comment 6 Vladimir Kvashin 2016-02-22 15:29:20 UTC
Created attachment 158600 [details]
stacktrace

I had JConvert and LLVM project opened, I closed LLVM
The situation was a little bit weird for the following reason:
- LLVM is a link
- during previous IDE run LLVM pointed to LLVM38
- I closed IDE, removed the link and then re-linked it to LLVM36
- then I restarted IDE and closed the LLVM project
Comment 7 Exceptions Reporter 2016-08-13 16:10:42 UTC
Created attachment 161651 [details]
stacktrace

editing C++ template code