on master help sign in
Fix crash when stack trace not loaded

Still doesn't address the issue though

commit2c8910734976059d6921e4a7d6d3d2b16e3a7b00 authorDmitry Sharshakov <d3dx12.xx@gmail.com> dateThu 2 Sep 2021, 19:58 (5 years ago) parente0180a4
1 file changed+4−1
helix-term/src/ui/editor.rs+4−1
helix-term/src/ui/editor.rs+4−1
@@ -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 ..