mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-38413 (ignore invalid context)
This commit is contained in:
@@ -396,7 +396,7 @@ public class PsiJavaParserFacadeImpl implements PsiJavaParserFacade {
|
||||
}
|
||||
|
||||
protected static LanguageLevel level(@Nullable final PsiElement context) {
|
||||
return context != null ? PsiUtil.getLanguageLevel(context) : LanguageLevel.HIGHEST;
|
||||
return context != null && context.isValid() ? PsiUtil.getLanguageLevel(context) : LanguageLevel.HIGHEST;
|
||||
}
|
||||
|
||||
private static IncorrectOperationException newException(final String msg, final DummyHolder holder) {
|
||||
|
||||
Reference in New Issue
Block a user