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.
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)
Created attachment 156073 [details] stacktrace
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
*** This bug has been marked as a duplicate of bug 252373 ***