Filter out variables with null values (EA-87276)
This commit is contained in:
@@ -167,7 +167,12 @@ class KotlinCodeFragmentFactory: CodeFragmentFactory() {
|
|||||||
else
|
else
|
||||||
debuggerContext.frameProxy?.stackFrame
|
debuggerContext.frameProxy?.stackFrame
|
||||||
|
|
||||||
frameInfo = FrameInfo(frame?.thisObject(), frame?.let { it.getValues(it.visibleVariables()) } ?: emptyMap())
|
val visibleVariables = frame?.let {
|
||||||
|
val values = it.getValues(it.visibleVariables())
|
||||||
|
values.filterValues { it != null }
|
||||||
|
} ?: emptyMap()
|
||||||
|
|
||||||
|
frameInfo = FrameInfo(frame?.thisObject(), visibleVariables)
|
||||||
}
|
}
|
||||||
catch(ignored: AbsentInformationException) {
|
catch(ignored: AbsentInformationException) {
|
||||||
// Debug info unavailable
|
// Debug info unavailable
|
||||||
|
|||||||
Reference in New Issue
Block a user