@@ -455,7 +455,10 @@ impl EditorView {
455455 // if we have a frame, and the frame path matches document
456456 if let (Some(frame), Some(thread_id)) = (debugger.active_frame, debugger.thread_id)
457457 {
458− let frame = debugger.stack_frames[&thread_id].get(frame); // TODO: drop the clone..
458+ let frame = debugger
459+ .stack_frames
460+ .get(&thread_id)
461+ .and_then(|bt| bt.get(frame)); // TODO: drop the clone..
459462 if let Some(StackFrame {
460463 source: Some(source),
461464 ..