Fix EA-113820: Accept also nullable elements in 'getRelevantElement()'
This commit is contained in:
@@ -59,7 +59,11 @@ class DebuggerClassNameProvider(
|
||||
KtFunctionLiteral::class.java,
|
||||
KtAnonymousInitializer::class.java)
|
||||
|
||||
internal fun getRelevantElement(element: PsiElement): PsiElement? {
|
||||
internal fun getRelevantElement(element: PsiElement?): PsiElement? {
|
||||
if (element == null) {
|
||||
return null
|
||||
}
|
||||
|
||||
for (elementType in CLASS_ELEMENT_TYPES) {
|
||||
if (elementType.isInstance(element)) {
|
||||
return element
|
||||
|
||||
Reference in New Issue
Block a user