浏览代码

Check for cell isDisposed before getting the model

Jeremy Tuloup 5 年之前
父节点
当前提交
5d8351539a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/handlers/cell.ts

+ 1 - 1
src/handlers/cell.ts

@@ -72,7 +72,7 @@ export class CellManager implements IDisposable {
       this.addBreakpointsToEditor(this.activeCell);
       this.addBreakpointsToEditor(this.activeCell);
     });
     });
 
 
-    if (this.activeCell) {
+    if (this.activeCell && !this.activeCell.isDisposed) {
       this._debuggerModel.codeValue = this.activeCell.model.value;
       this._debuggerModel.codeValue = this.activeCell.model.value;
     }
     }
   }
   }