Fix setTheme NPE in 3.14

Fixes #2220
This commit is contained in:
Daniel Imms
2019-07-10 11:37:18 -07:00
parent 0734e97022
commit c97972b9bb
+3 -1
View File
@@ -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);
}