Skip to content

Commit d07cea5

Browse files
Debugger, minor: do not throw NPE when receiverTypes are null in completion
1 parent 71b430c commit d07cea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/CompletionSession.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ abstract class CompletionSession(
450450
predictableSmartCastsOnly = true /* we don't include smart cast receiver types for "unpredictable" receiver value to mark members grayed */)
451451

452452
if (callTypeAndReceiver is CallTypeAndReceiver.SAFE || isDebuggerContext) {
453-
receiverTypes = receiverTypes!!.map { it.makeNotNullable() }
453+
receiverTypes = receiverTypes?.map { it.makeNotNullable() }
454454
}
455455

456456
return callTypeAndReceiver to receiverTypes

0 commit comments

Comments
 (0)