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

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

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