Merge pull request #1717 from Tyriar/charatlas_npe

Prevent NPE when disposing terminal shortly after creation
This commit is contained in:
Daniel Imms
2018-10-04 12:02:09 -07:00
committed by GitHub
+3 -1
View File
@@ -51,7 +51,9 @@ export abstract class BaseRenderLayer implements IRenderLayer {
public dispose(): void {
this._container.removeChild(this._canvas);
this._charAtlas.dispose();
if (this._charAtlas) {
this._charAtlas.dispose();
}
}
private _initCanvas(): void {