Avoid failure on first() call
This commit is contained in:
+1
-1
@@ -365,7 +365,7 @@ fun getStepOverAction(
|
|||||||
// Pretend we had already did a backing step
|
// Pretend we had already did a backing step
|
||||||
methodLocations
|
methodLocations
|
||||||
.filter(::isLocationSuitable)
|
.filter(::isLocationSuitable)
|
||||||
.first { it.ktLineNumber() == location.ktLineNumber() }
|
.firstOrNull { it.ktLineNumber() == location.ktLineNumber() } ?: location
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
location
|
location
|
||||||
|
|||||||
Reference in New Issue
Block a user