From 34bc0efc1c6897e456eb7039d116d60431a9bf85 Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Fri, 31 May 2019 17:42:12 -0700 Subject: [PATCH] Check if sessionManager exists (#5811) --- src/sql/workbench/parts/notebook/models/clientSession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/parts/notebook/models/clientSession.ts b/src/sql/workbench/parts/notebook/models/clientSession.ts index 81b4b62e7d..c23404c3b5 100644 --- a/src/sql/workbench/parts/notebook/models/clientSession.ts +++ b/src/sql/workbench/parts/notebook/models/clientSession.ts @@ -306,7 +306,7 @@ export class ClientSession implements IClientSession { */ public async shutdown(): Promise { // Always try to shut down session - if (this._session && this._session.id) { + if (this._session && this._session.id && this.notebookManager && this.notebookManager.sessionManager) { await this.notebookManager.sessionManager.shutdown(this._session.id); } }