handle exceptions during find usages and continue

This commit is contained in:
peter
2016-01-21 19:30:19 +01:00
parent eefaffa8ec
commit ef0b200d22
@@ -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