mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip invalid elements in SymbolCollectingProcessor.execute()
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public class SymbolCollectingProcessor extends BaseScopeProcessor implements Ele
|
||||
|
||||
@Override
|
||||
public boolean execute(@NotNull PsiElement element, @NotNull ResolveState state) {
|
||||
if (element instanceof PsiNamedElement) {
|
||||
if (element instanceof PsiNamedElement && element.isValid()) {
|
||||
PsiNamedElement named = (PsiNamedElement)element;
|
||||
String name = named.getName();
|
||||
if (name != null) {
|
||||
|
||||
Reference in New Issue
Block a user