mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IncorrectOperationException: UnsafeWeakList is not RandomAccess
This commit is contained in:
+1
-1
@@ -221,7 +221,7 @@ public class ProjectManagerImpl extends ProjectManagerEx implements Disposable {
|
||||
if (getLeakedProjects().count() >= MAX_LEAKY_PROJECTS) {
|
||||
List<Project> copy = getLeakedProjects().collect(Collectors.toCollection(UnsafeWeakList::new));
|
||||
myProjects.clear();
|
||||
if (copy.size() >= MAX_LEAKY_PROJECTS) {
|
||||
if (getLeakedProjects().count() >= MAX_LEAKY_PROJECTS) {
|
||||
throw new TooManyProjectLeakedException(copy);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user