Explorar o código

Check for cell isDisposed before getting the model

Jeremy Tuloup %!s(int64=5) %!d(string=hai) anos
pai
achega
5d8351539a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
     });
 
-    if (this.activeCell) {
+    if (this.activeCell && !this.activeCell.isDisposed) {
       this._debuggerModel.codeValue = this.activeCell.model.value;
     }
   }