提交 dc226674 编写于 作者: I isidor

panel: null guard

上级 81f3d13e
......@@ -60,7 +60,7 @@ export class OutputEditorInput extends StringEditorInput {
this.append(e.output);
this.trim(OutputEditorInput.MAX_OUTPUT_LINES);
const panel = this.panelService.getActivePanel();
if (panel.getId() === OUTPUT_PANEL_ID && this.outputService.getActiveChannel() === this.channel) {
if (panel && panel.getId() === OUTPUT_PANEL_ID && this.outputService.getActiveChannel() === this.channel) {
(<OutputPanel>panel).revealLastLine();
}
} else if (e.output === null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册