提交 86c05da8 编写于 作者: R Rachel Macfarlane

Fixes #51521, TypeError: Cannot read property 'close' of undefined

上级 3a862bae
......@@ -78,8 +78,10 @@ export class IssueService implements IIssueService {
this._issueWindow.on('close', () => this._issueWindow = null);
this._issueParentWindow.on('closed', () => {
this._issueWindow.close();
this._issueWindow = null;
if (this._issueWindow) {
this._issueWindow.close();
this._issueWindow = null;
}
});
}
......@@ -139,8 +141,10 @@ export class IssueService implements IIssueService {
this._processExplorerWindow.on('close', () => this._processExplorerWindow = void 0);
parentWindow.on('close', () => {
this._processExplorerWindow.close();
this._processExplorerWindow = null;
if (this._processExplorerWindow) {
this._processExplorerWindow.close();
this._processExplorerWindow = null;
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册