Debugger: location.sourceName could throw InternalError if codeIndex isn't valid

This commit is contained in:
Natalia Ukhorskaya
2015-10-07 14:30:40 +03:00
parent 7776aa77c8
commit 11ea5f28e8
2 changed files with 7 additions and 1 deletions
@@ -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()