From 49090d774dbc5d4c82be6da68c04aa169577020b Mon Sep 17 00:00:00 2001 From: Kevin Cunnane Date: Thu, 17 Jan 2019 14:41:56 -0800 Subject: [PATCH] Null ref occurred when doing some UI interactions before the notebook model was set (#3769) --- src/sql/parts/notebook/notebook.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/parts/notebook/notebook.component.ts b/src/sql/parts/notebook/notebook.component.ts index 0bcdc965b5..f4b02b8e30 100644 --- a/src/sql/parts/notebook/notebook.component.ts +++ b/src/sql/parts/notebook/notebook.component.ts @@ -168,7 +168,7 @@ export class NotebookComponent extends AngularDisposable implements OnInit, OnDe } public unselectActiveCell() { - if (this.model.activeCell) { + if (this.model && this.model.activeCell) { this.model.activeCell.active = false; } this._changeRef.detectChanges();