EA-210823: Fix AIE in breakpoint applicability test
This commit is contained in:
+7
-1
@@ -62,7 +62,11 @@ fun StackFrameProxy.safeLocation(): Location? {
|
||||
}
|
||||
|
||||
fun Location.safeSourceName(): String? {
|
||||
return DebuggerUtilsEx.getSourceName(this) { null }
|
||||
return wrapAbsentInformationException { this.sourceName() }
|
||||
}
|
||||
|
||||
fun Location.safeSourceName(stratum: String): String? {
|
||||
return wrapAbsentInformationException { this.sourceName(stratum) }
|
||||
}
|
||||
|
||||
fun Location.safeLineNumber(): Int {
|
||||
@@ -92,6 +96,8 @@ private inline fun <T> wrapAbsentInformationException(block: () -> T): T? {
|
||||
null
|
||||
} catch (e: AbsentInformationEvaluateException) {
|
||||
null
|
||||
} catch (e: InternalException) {
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user