diff --git a/src/sql/parts/notebook/models/cell.ts b/src/sql/parts/notebook/models/cell.ts index 48c9eed199..104696b2c7 100644 --- a/src/sql/parts/notebook/models/cell.ts +++ b/src/sql/parts/notebook/models/cell.ts @@ -490,7 +490,9 @@ export class CellModel implements ICellModel { // Dispose and set current future to undefined private disposeFuture() { - this._future.dispose(); + if (this._future) { + this._future.dispose(); + } this._future = undefined; } }