@@ -388,18 +388,20 @@ impl Application {
389 Event::Breakpoint(events::Breakpoint { reason, breakpoint }) => match &reason[..] {
389 Event::Breakpoint(events::Breakpoint { reason, breakpoint }) => match &reason[..] {
390 "new" => {
390 "new" => {
391+ if let Some(source) = breakpoint.source {
391− self.editor
392+ self.editor
392− .breakpoints
393+ .breakpoints
393− .entry(breakpoint.source.unwrap().path.unwrap()) // TODO: no unwraps
394+ .entry(source.path.unwrap()) // TODO: no unwraps
394− .or_default()
395+ .or_default()
395− .push(Breakpoint {
396+ .push(Breakpoint {
396− id: breakpoint.id,
397+ id: breakpoint.id,
397− verified: breakpoint.verified,
398+ verified: breakpoint.verified,
398− message: breakpoint.message,
399+ message: breakpoint.message,
399− line: breakpoint.line.unwrap().saturating_sub(1), // TODO: no unwrap
400+ line: breakpoint.line.unwrap().saturating_sub(1), // TODO: no unwrap
400− column: breakpoint.column,
401+ column: breakpoint.column,
401− ..Default::default()
402+ ..Default::default()
404 "changed" => {
406 "changed" => {
405 for breakpoints in self.editor.breakpoints.values_mut() {
407 for breakpoints in self.editor.breakpoints.values_mut() {