提交 b612a305 编写于 作者: D Daniel Imms

Add null checks

上级 ded4a9ab
...@@ -488,8 +488,12 @@ export class TerminalInstance implements ITerminalInstance { ...@@ -488,8 +488,12 @@ export class TerminalInstance implements ITerminalInstance {
private _sendPtyDataToXterm(message: { type: string, content: string }): void { private _sendPtyDataToXterm(message: { type: string, content: string }): void {
if (message.type === 'data') { if (message.type === 'data') {
this._widgetManager.closeMessage(); if (this._widgetManager) {
this._linkHandler.disposeTooltipListeners(); this._widgetManager.closeMessage();
}
if (this._linkHandler) {
this._linkHandler.disposeTooltipListeners();
}
if (this._xterm) { if (this._xterm) {
this._xterm.write(message.content); this._xterm.write(message.content);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册