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 243385 - NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileComponentReferences$ReferenceImpl.getContainingFile
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.0
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-30 15:07 UTC by Exceptions Reporter
Modified: 2014-04-24 02:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208707


Attachments
stacktrace (1.56 KB, text/plain)
2014-03-30 15:07 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-03-30 15:07:17 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 (Build 201403101706)
VM: OpenJDK 64-Bit Server VM, 24.51-b03, OpenJDK Runtime Environment, 1.7.0_51-b31
OS: Linux

User Comments:
GUEST: Editing code, doing a search of variable usage ... I'm not sure what triggered this.
BUT I just disabled the "automatic external change scanner" and restarted the IDE. (Trying to get rid of that pesky full cpu usage of netbeans for no appearant reason)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.modelimpl.content.file.FileComponentReferences$ReferenceImpl.getContainingFile(FileComponentReferences.java:505)
   at org.netbeans.modules.cnd.completion.impl.xref.ReferenceResolverImpl.isKindOf(ReferenceResolverImpl.java:79)
   at org.netbeans.modules.cnd.api.model.xref.CsmReferenceResolver$Default.isKindOf(CsmReferenceResolver.java:196)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticEntitiesProvider$FastFunctionsCodeProvider.getAttributes(SemanticEntitiesProvider.java:228)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.addHighlightsToBag(SemanticHighlighter.java:234)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.updateImpl(SemanticHighlighter.java:183)
Comment 1 Exceptions Reporter 2014-03-30 15:07:19 UTC
Created attachment 146413 [details]
stacktrace
Comment 2 Alexander Simon 2014-04-07 13:56:54 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/e07bb46aebb2
Comment 3 Quality Engineering 2014-04-08 06:08:58 UTC
Integrated into 'main-silver', will be available in build *201404080419* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e07bb46aebb2
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #243385 NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileComponentReferences$ReferenceImpl.getContainingFile
Comment 4 Quality Engineering 2014-04-24 02:09:55 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/dad19d34d39f
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #243385 NullPointerException at org.netbeans.modules.cnd.modelimpl.content.file.FileComponentReferences$ReferenceImpl.getContainingFile
(transplanted from e07bb46aebb2f2ecf5e5d5b895ee29c47dcd3ff5)