mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 00:21:30 +00:00
Don't try to calculate icon for invalid PSI elements
#KT-13443 Fixed
This commit is contained in:
@@ -79,6 +79,10 @@ internal class KotlinStructureElementPresentation(
|
||||
return KotlinDescriptorIconProvider.getIcon(descriptor, navigatablePsiElement, Iconable.ICON_FLAG_VISIBILITY)
|
||||
}
|
||||
|
||||
if (!navigatablePsiElement.isValid) {
|
||||
return null
|
||||
}
|
||||
|
||||
return PsiIconUtil.getProvidersIcon(navigatablePsiElement, Iconable.ICON_FLAG_VISIBILITY)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user