diff --git a/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/ScopeVariablesGroup.kt b/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/ScopeVariablesGroup.kt index 791537909d6f..76a973a4ded2 100644 --- a/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/ScopeVariablesGroup.kt +++ b/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/ScopeVariablesGroup.kt @@ -54,7 +54,7 @@ class ScopeVariablesGroup(val scope: Scope, parentContext: VariableContext, call } fun createAndAddScopeList(node: XCompositeNode, scopes: List, context: VariableContext, callFrame: CallFrame?) { - val list = XValueChildrenList(scopes.size) + val list = XValueChildrenList(scopes.size()) for (scope in scopes) { list.addTopGroup(ScopeVariablesGroup(scope, context, callFrame)) }