Fix crash when stack trace not loaded

Still doesn't address the issue though
imgbot
Dmitry Sharshakov 3 years ago
parent e0180a4b88
commit 2c89107349
No known key found for this signature in database
GPG Key ID: 471FD32E15FD8473

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

Loading…
Cancel
Save