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 201072 - AssertionError: no object for UID KeyBasedUID on FileKey (/GTNetS-MPIN, /GTNetS-MPI/EXAMPLES/demotcpworm.cc) in object class org.netbeans.modules.cnd.modelimpl.csm.UsingDirectiveImpl:[434-453]
Summary: AssertionError: no object for UID KeyBasedUID on FileKey (/GTNetS-MPIN, /GTNe...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 10:18 UTC by stiffuser
Modified: 2011-09-08 09:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 179288


Attachments
stacktrace (4.29 KB, text/plain)
2011-08-18 10:18 UTC, stiffuser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stiffuser 2011-08-18 10:18:07 UTC
This issue was reported manually by vv159170.
It already has 1 duplicates 


Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326
OS: Mac OS X

Stacktrace: 
java.lang.AssertionError: no object for UID KeyBasedUID on FileKey (/GTNetS-MPIN, /GTNetS-MPI/EXAMPLES/demotcpworm.cc) in object class org.netbeans.modules.cnd.modelimpl.csm.UsingDirectiveImpl:[434-453]
   at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableBase._getFile(OffsetableBase.java:161)
   at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableBase.getContainingFile(OffsetableBase.java:132)
   at org.netbeans.modules.cnd.modelimpl.impl.services.UsingResolverImpl.extractNamespaces(UsingResolverImpl.java:200)
   at org.netbeans.modules.cnd.modelimpl.impl.services.UsingResolverImpl.findVisibleNamespaces(UsingResolverImpl.java:238)
   at org.netbeans.modules.cnd.completion.cplusplus.CsmFinderImpl.checkStopAfterAppendAllNamespaceElements(CsmFinderImpl.java:378)
   at org.netbeans.modules.cnd.completion.cplusplus.CsmFinderImpl.findNamespaceElements(CsmFinderImpl.java:268)
Comment 1 stiffuser 2011-08-18 10:18:11 UTC
Created attachment 110062 [details]
stacktrace
Comment 2 Alexander Simon 2011-09-08 09:46:17 UTC
Log contains a lot of:
java.lang.NullPointerException
	at org.netbeans.modules.cnd.modelimpl.uid.UIDProviderIml.get(UIDProviderIml.java:138)
	at org.netbeans.modules.cnd.modelimpl.uid.UIDProviderIml.get(UIDProviderIml.java:85)
	at org.netbeans.modules.cnd.api.model.util.UIDs.get(UIDs.java:70)
	at org.netbeans.modules.cnd.modelimpl.csm.InheritanceImpl.write(InheritanceImpl.java:206)
...

NPE was fixed in change set:
http://hg.netbeans.org/cnd-main/rev/a442b61140c8

It seems root cause of bug is NPE.
So close as fixed.