mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-32790 don't attempt to render invalid usage targets
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ public class PsiElement2UsageTargetAdapter implements PsiElementUsageTarget, Typ
|
||||
|
||||
public void update() {
|
||||
final PsiElement element = getElement();
|
||||
if (element != null) {
|
||||
if (element != null && element.isValid()) {
|
||||
final ItemPresentation presentation = ((NavigationItem)element).getPresentation();
|
||||
myIconOpen = presentation != null ? ComputableIcon.create(presentation, true) : null;
|
||||
myIconClosed = presentation != null ? ComputableIcon.create(presentation, false) : null;
|
||||
|
||||
Reference in New Issue
Block a user