Fix NPE in _setTheme

Fixes #2220
This commit is contained in:
Daniel Imms
2019-06-13 08:51:42 -07:00
parent 26f967ec3f
commit 57eaa24ea0
+3 -1
View File
@@ -700,7 +700,9 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
*/
private _setTheme(theme: ITheme): void {
this._theme = theme;
this._colorManager.setTheme(theme);
if (this._colorManager) {
this._colorManager.setTheme(theme);
}
if (this._renderService) {
this._renderService.setColors(this._colorManager.colors);
}