浏览代码

debug forr tests

Borys Palka 5 年之前
父节点
当前提交
743347f79f
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/breakpoints/index.ts

+ 5 - 3
src/breakpoints/index.ts

@@ -15,9 +15,11 @@ export class Breakpoints extends Panel {
 
 
     this.service = options.service;
     this.service = options.service;
 
 
-    this.service.selectedBreakpointsChanged.connect((sender, update) => {
-      this.model.breakpoints = update;
-    });
+    if (this.service) {
+      this.service.selectedBreakpointsChanged.connect((sender, update) => {
+        this.model.breakpoints = update;
+      });
+    }
 
 
     this.model = new Breakpoints.IModel([]);
     this.model = new Breakpoints.IModel([]);
     this.addClass('jp-DebuggerBreakpoints');
     this.addClass('jp-DebuggerBreakpoints');