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)
|
val declaration = DescriptorToSourceUtilsIde.getAnyDeclaration(file.project, descriptor)
|
||||||
if (descriptor.isFromJava) {
|
if (descriptor.isFromJava) {
|
||||||
(declaration as? PsiMethod)?.let {
|
if (declaration is PsiMethod) {
|
||||||
result.add(MethodSmartStepTarget(it, null, declaration, false, lines))
|
result.add(MethodSmartStepTarget(declaration, null, expression, false, lines))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (declaration == null && !isInvokeInBuiltinFunction(descriptor)) {
|
if (declaration == null && !isInvokeInBuiltinFunction(descriptor)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user