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 255195 - AssertionError: empty project for UID KeyBasedUID on ProjectKey /usr/include
Summary: AssertionError: empty project for UID KeyBasedUID on ProjectKey /usr/include
Status: RESOLVED DUPLICATE of bug 252373
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 20:55 UTC by Exceptions Reporter
Modified: 2016-10-14 15:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219865


Attachments
stacktrace (4.61 KB, text/plain)
2015-09-10 20:55 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-09-10 20:55:24 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Windows 8.1

User Comments:
GUEST: Editting C++ file in IDE




Stacktrace: 
java.lang.AssertionError: empty project for UID KeyBasedUID on ProjectKey /usr/include
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._getProject(FileImpl.java:405)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getProjectImpl(FileImpl.java:1614)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.hashCode(FileImpl.java:2099)
   at java.util.HashMap.hash(HashMap.java:338)
   at java.util.HashMap.containsKey(HashMap.java:595)
   at java.util.HashSet.contains(HashSet.java:203)
Comment 1 Exceptions Reporter 2015-09-10 20:55:26 UTC
Created attachment 156073 [details]
stacktrace
Comment 2 Vladimir Kvashin 2015-09-23 21:08:03 UTC
FileImpl.hashCode() is incorrect, it throws such exception if a project is removed while somebody keeps a reference on the FileImpl and tries to put it into a hashmap
Comment 3 Vladimir Kvashin 2016-10-14 15:18:55 UTC

*** This bug has been marked as a duplicate of bug 252373 ***