diff --git a/tools/idea/plugin/src/main/java/org/teavm/idea/debug/TeaVMStackFrame.java b/tools/idea/plugin/src/main/java/org/teavm/idea/debug/TeaVMStackFrame.java index 09becb44e..1d6ac3053 100644 --- a/tools/idea/plugin/src/main/java/org/teavm/idea/debug/TeaVMStackFrame.java +++ b/tools/idea/plugin/src/main/java/org/teavm/idea/debug/TeaVMStackFrame.java @@ -63,7 +63,7 @@ class TeaVMStackFrame extends XStackFrame { if (jsFrame != null) { JavaScriptLocation jsLocation = jsFrame.getLocation(); if (jsLocation != null) { - virtualFile = VirtualFileManager.getInstance().findFileByUrl(jsLocation.getScript()); + virtualFile = VirtualFileManager.getInstance().findFileByUrl(jsLocation.getScript().getUrl()); if (virtualFile != null) { line = jsLocation.getLine(); }