this.stackTrace = null;
} else {
CallFrame[] teavmCallStack = teavmDebugger.getCallStack();
TeaVMStackFrame[] stackTrace = new TeaVMStackFrame[teavmCallStack.length];
for (int i = 0; i < teavmCallStack.length; ++i) {
CallFrame teavmFrame = teavmCallStack[i];
if (teavmFrame.getLocation() != null && teavmFrame.getLocation().getFileName() != null) {
stackTrace[i] = new TeaVMJavaStackFrame(this, teavmDebugger, teavmFrame);
} else {
stackTrace[i] = new TeaVMJSStackFrame(this, teavmDebugger.getJavaScriptDebugger(),
teavmFrame.getOriginalCallFrame());
}
}
this.stackTrace = stackTrace;
}
fireEvent(new DebugEvent(this, DebugEvent.CHANGE));