Debugger, minor: do not throw NPE when receiverTypes are null in completion

This commit is contained in:
Natalia Ukhorskaya
2016-04-11 14:31:42 +03:00
parent d42823d4ee
commit a929df6fa1
@@ -450,7 +450,7 @@ abstract class CompletionSession(
predictableSmartCastsOnly = true /* we don't include smart cast receiver types for "unpredictable" receiver value to mark members grayed */)
if (callTypeAndReceiver is CallTypeAndReceiver.SAFE || isDebuggerContext) {
receiverTypes = receiverTypes!!.map { it.makeNotNullable() }
receiverTypes = receiverTypes?.map { it.makeNotNullable() }
}
return callTypeAndReceiver to receiverTypes