Merge pull request #1512 from Tyriar/1511_npe_beginFrame

Add a null check to charatlas beginFrame call
This commit is contained in:
Daniel Imms
2018-06-12 18:02:21 +02:00
committed by GitHub
+3 -1
View File
@@ -208,7 +208,9 @@ export class TextRenderLayer extends BaseRenderLayer {
return;
}
this._charAtlas.beginFrame();
if (this._charAtlas) {
this._charAtlas.beginFrame();
}
this.clearCells(0, firstRow, terminal.cols, lastRow - firstRow + 1);
this._drawBackground(terminal, firstRow, lastRow);