From c97972b9bb7adb91eb2efaf186c7ccf1893c9fc1 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 10 Jul 2019 11:37:18 -0700 Subject: [PATCH] Fix setTheme NPE in 3.14 Fixes #2220 --- src/Terminal.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Terminal.ts b/src/Terminal.ts index 67728cfbd..87a03bd2b 100644 --- a/src/Terminal.ts +++ b/src/Terminal.ts @@ -832,7 +832,9 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II */ private _setTheme(theme: ITheme): void { this._theme = theme; - this._colorManager.setTheme(theme); + if (this._colorManager) { + this._colorManager.setTheme(theme); + } if (this._renderCoordinator) { this._renderCoordinator.setColors(this._colorManager.colors); }