Fix EA-82394. PsiType.getClassName() can return null. Return "<anonymous type>" in that case.
(cherry picked from commit 8be1335) (cherry picked from commit 5101596)
This commit is contained in:
@@ -28,7 +28,7 @@ class JavaUType(
|
||||
) : JavaAbstractUElement(), UType {
|
||||
override val name: String
|
||||
get() = when (psi) {
|
||||
is PsiClassType -> psi.className.substringAfterLast('.')
|
||||
is PsiClassType -> psi.className?.substringAfterLast('.').orAnonymous("type")
|
||||
else -> psi?.canonicalText?.substringAfterLast('.')
|
||||
}.orAnonymous("type")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user