StackFrameProxyImpl () { assertNotResumed(); try { if (myThread != null) { int frameCount = myThread.frameCount(); if (myFrameCount != -1 && myFrameCount != frameCount) { LOG.error("Incorrect frame count, cached " + myFrameCount + ", now " + frameCount + ", thread " + myThread + " suspend count " + myThread.getSuspendCount()); } myFrameCount = frameCount; if (frameCount > 0) { return myThread.frame(0); } } return null; } catch (EvaluateException ignored) { return null; } }