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 - NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.Instantiation.getKind
Summary: NullPointerException at org.netbeans.modules.cnd.modelimpl.csm.Instantiation....
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-14 15:38 UTC by Exceptions Reporter
Modified: 2016-09-01 14:47 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211794


Attachments
stacktrace (959 bytes, text/plain)
2014-09-14 15:38 UTC, Exceptions Reporter
Details
stacktrace (1.70 KB, text/plain)
2014-11-14 05:09 UTC, tbrunhoff
Details
stacktrace (1.08 KB, text/plain)
2016-02-22 15:29 UTC, Vladimir Kvashin
Details
stacktrace (1.08 KB, text/plain)
2016-08-13 16:10 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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