From 1dc9bde6d9ab284c2f8f65dbe4735b8169c02839 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 18 Apr 2017 12:52:28 +0300 Subject: [PATCH] fixes after IDEA-CR-20368 --- .../com/intellij/debugger/memory/utils/StackFrameItem.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java b/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java index c23eb3499415..7ab32c520236 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/utils/StackFrameItem.java @@ -90,8 +90,9 @@ public class StackFrameItem { public static List createFrames(@NotNull SuspendContextImpl suspendContext, boolean withVars) throws EvaluateException { ThreadReferenceProxyImpl threadReferenceProxy = suspendContext.getThread(); if (threadReferenceProxy != null) { - List res = new ArrayList<>(); - for (StackFrameProxyImpl frame : threadReferenceProxy.forceFrames()) { + List frameProxies = threadReferenceProxy.forceFrames(); + List res = new ArrayList<>(frameProxies.size()); + for (StackFrameProxyImpl frame : frameProxies) { try { List vars = null; Location location = frame.location();