Procházet zdrojové kódy

Check for cell isDisposed before getting the model

Jeremy Tuloup před 5 roky
rodič
revize
5d8351539a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
     }
   }