Handle AbsentInformationException correctly (EA-119717)

This commit is contained in:
Yan Zhulanow
2018-05-24 00:03:14 +03:00
parent 4dfcb72fa1
commit 0f15dfdfdc
@@ -176,7 +176,13 @@ fun isOnSuspendReturnOrReenter(location: Location): Boolean {
}
fun isLastLineLocationInMethod(location: Location): Boolean {
val knownLines = location.method().allLineLocations().map { it.lineNumber() }.filter { it != -1 }
val allLineLocations = try {
location.method().allLineLocations()
} catch (e: AbsentInformationException) {
return false
}
val knownLines = allLineLocations.map { it.lineNumber() }.filter { it != -1 }
if (knownLines.isEmpty()) {
return false
}