From 6dfbfecc9002405f1b0dfe393188eaa8c512ef91 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Mon, 14 May 2018 15:30:59 -0700 Subject: [PATCH] Enable setting new breakpoints after a failed one --- src/debugAdapter/goDebug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugAdapter/goDebug.ts b/src/debugAdapter/goDebug.ts index 0a35e1353..d5f95592e 100644 --- a/src/debugAdapter/goDebug.ts +++ b/src/debugAdapter/goDebug.ts @@ -639,7 +639,7 @@ class GoDebugSession extends DebugSession { }).then(newBreakpoints => { // Unwrap breakpoints from v2 apicall let adaptedBreakpoints = newBreakpoints.map((bp, i) => { - return bp.Breakpoint; + return bp ? bp.Breakpoint : null; }); let breakpoints = adaptedBreakpoints.map((bp, i) => { if (bp) {