fwcd / kotlin-debug-adapter

Kotlin/JVM debugging for any editor/IDE using the Debug Adapter Protocol
MIT License
111 stars 19 forks source link

JDI throws exception when trying to inspect a null variable #4

Closed fwcd closed 5 years ago

fwcd commented 5 years ago
Caused by: java.lang.IllegalStateException: jdiValue.getValue(it) must not be null
    at com.fwcd.ktda.jdi.scope.JDIVariable.fieldsOf(JDIVariable.kt:36)
    at com.fwcd.ktda.jdi.scope.JDIVariable.childrenOf(JDIVariable.kt:26)
    at com.fwcd.ktda.jdi.scope.JDIVariable.access$childrenOf(JDIVariable.kt:12)
    at com.fwcd.ktda.jdi.scope.JDIVariable$childs$2.invoke(JDIVariable.kt:18)
    at com.fwcd.ktda.jdi.scope.JDIVariable$childs$2.invoke(JDIVariable.kt:12)
    at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:131)
    at com.fwcd.ktda.jdi.scope.JDIVariable.getChilds(JDIVariable.kt)
    at com.fwcd.ktda.adapter.KotlinDebugAdapter.variables(KotlinDebugAdapter.kt:284)
    ... 16 more