Debugger: Fix NPE in inline lambda context evaluator

-EA-72501 - KNPE: KotlinCodeFragmentFactory$createCodeFragment$.invoke
This commit is contained in:
Natalia Ukhorskaya
2015-09-02 15:26:50 +03:00
parent a63341b901
commit 1d5110f424
@@ -157,6 +157,8 @@ class KotlinCodeFragmentFactory: CodeFragmentFactory() {
if (semaphore.waitFor(20)) break
}
if (visibleVariables == null) return@lamdba null
fun isLocalVariableForParameterPresent(p: ValueParameterDescriptor): Boolean {
return visibleVariables?.firstOrNull {
if (it.first.name() != p.name.asString()) return@firstOrNull false