Null ref occurred when doing some UI interactions before the notebook model was set (#3769)

This commit is contained in:
Kevin Cunnane
2019-01-17 14:41:56 -08:00
committed by GitHub
parent 9a695b5cdd
commit 49090d774d

View File

@@ -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();