Debugger: location.sourceName could throw InternalError if codeIndex isn't valid
This commit is contained in:
@@ -156,6 +156,9 @@ public class JetPositionManager(private val myDebugProcess: DebugProcess) : Mult
|
||||
catch (e: AbsentInformationException) {
|
||||
return null
|
||||
}
|
||||
catch (e: InternalError) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
val referenceInternalName: String
|
||||
|
||||
@@ -265,7 +265,10 @@ class KotlinFieldBreakpoint(
|
||||
location.sourceName()
|
||||
}
|
||||
catch (e: AbsentInformationException) {
|
||||
getFileName()
|
||||
fileName
|
||||
}
|
||||
catch (e: InternalError) {
|
||||
fileName
|
||||
}
|
||||
|
||||
val locationLine = location.lineNumber()
|
||||
|
||||
Reference in New Issue
Block a user