Avoid failure on first() call

This commit is contained in:
Nikolay Krasko
2016-11-15 21:56:01 +03:00
parent a13e878c9b
commit 2817e1a5f1
@@ -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