We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07cea5 commit 65108fdCopy full SHA for 65108fd
idea/src/org/jetbrains/kotlin/idea/debugger/breakpoints/KotlinLineBreakpointType.java
@@ -88,7 +88,7 @@ private static JavaBreakpointProperties getProperties(@NotNull LineBreakpoint<?>
88
private static KtFunction getLambdaByOrdinal(SourcePosition position, Integer ordinal) {
89
if (ordinal != null && ordinal >= 0) {
90
List<KtFunction> lambdas = BreakpointTypeUtilsKt.getLambdasAtLineIfAny(position);
91
- if (lambdas.size() >= ordinal) {
+ if (!lambdas.isEmpty() && lambdas.size() >= ordinal) {
92
return lambdas.get(ordinal);
93
}
94
0 commit comments