mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
INRE: hierarchy view is not available during dumb mode so if it starts during loading nodes, just ignore
EA-87838 - INRE: FileBasedIndexImpl.handleDumbMode
This commit is contained in:
@@ -18,6 +18,7 @@ package com.intellij.ide.hierarchy;
|
||||
|
||||
import com.intellij.ide.util.treeView.AbstractTreeStructure;
|
||||
import com.intellij.ide.util.treeView.NodeDescriptor;
|
||||
import com.intellij.openapi.project.IndexNotReadyException;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.roots.TestSourcesFilter;
|
||||
import com.intellij.openapi.util.ActionCallback;
|
||||
@@ -93,7 +94,12 @@ public abstract class HierarchyTreeStructure extends AbstractTreeStructure {
|
||||
final Object[] cachedChildren = descriptor.getCachedChildren();
|
||||
if (cachedChildren == null) {
|
||||
if (descriptor.isValid()) {
|
||||
descriptor.setCachedChildren(buildChildren(descriptor));
|
||||
try {
|
||||
descriptor.setCachedChildren(buildChildren(descriptor));
|
||||
}
|
||||
catch (IndexNotReadyException e) {
|
||||
return ArrayUtil.EMPTY_OBJECT_ARRAY;
|
||||
}
|
||||
}
|
||||
else {
|
||||
descriptor.setCachedChildren(ArrayUtil.EMPTY_OBJECT_ARRAY);
|
||||
|
||||
Reference in New Issue
Block a user