mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
handle exceptions during find usages and continue
This commit is contained in:
@@ -758,7 +758,17 @@ public class PsiSearchHelperImpl implements PsiSearchHelper {
|
||||
public boolean execute(@NotNull PsiElement element, int offsetInElement) {
|
||||
if (ignoreInjectedPsi && element instanceof PsiLanguageInjectionHost) return true;
|
||||
|
||||
return wrapped.processTextOccurrence(element, offsetInElement, consumer);
|
||||
try {
|
||||
return wrapped.processTextOccurrence(element, offsetInElement, consumer);
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
return true;
|
||||
}
|
||||
catch (Error e) {
|
||||
LOG.error(e);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user