Skip to content

Commit 2817e1a

Browse files
committed
Avoid failure on first() call
1 parent a13e878 commit 2817e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idea/src/org/jetbrains/kotlin/idea/debugger/stepping/KotlinSteppingCommandProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ fun getStepOverAction(
365365
// Pretend we had already did a backing step
366366
methodLocations
367367
.filter(::isLocationSuitable)
368-
.first { it.ktLineNumber() == location.ktLineNumber() }
368+
.firstOrNull { it.ktLineNumber() == location.ktLineNumber() } ?: location
369369
}
370370
else {
371371
location

0 commit comments

Comments
 (0)