mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't search for inheritors of an invalid class (EA-65106 - PIEAE: StubBasedPsiElementBase.getContainingFile)
This commit is contained in:
@@ -18,6 +18,7 @@ package com.intellij.psi.search.searches;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.openapi.progress.ProcessCanceledException;
|
||||
import com.intellij.openapi.progress.ProgressIndicator;
|
||||
import com.intellij.openapi.progress.ProgressIndicatorProvider;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -170,6 +171,9 @@ public class ClassInheritorsSearch extends ExtensibleQueryFactory<PsiClass, Clas
|
||||
return search(aClass, ApplicationManager.getApplication().runReadAction(new Computable<SearchScope>() {
|
||||
@Override
|
||||
public SearchScope compute() {
|
||||
if (!aClass.isValid()) {
|
||||
throw new ProcessCanceledException();
|
||||
}
|
||||
return aClass.getUseScope();
|
||||
}
|
||||
}), checkDeep);
|
||||
|
||||
Reference in New Issue
Block a user