Debugger: Fix exception in "Smart step into" for Java method calls (KT-32813)
This commit is contained in:
+2
-2
@@ -183,8 +183,8 @@ class KotlinSmartStepIntoHandler : JvmSmartStepIntoHandler() {
|
||||
|
||||
val declaration = DescriptorToSourceUtilsIde.getAnyDeclaration(file.project, descriptor)
|
||||
if (descriptor.isFromJava) {
|
||||
(declaration as? PsiMethod)?.let {
|
||||
result.add(MethodSmartStepTarget(it, null, declaration, false, lines))
|
||||
if (declaration is PsiMethod) {
|
||||
result.add(MethodSmartStepTarget(declaration, null, expression, false, lines))
|
||||
}
|
||||
} else {
|
||||
if (declaration == null && !isInvokeInBuiltinFunction(descriptor)) {
|
||||
|
||||
Reference in New Issue
Block a user