mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Prevent possible NPE
This commit is contained in:
parent
c5c7d43b65
commit
cd8d86b628
|
@ -330,7 +330,9 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
|
|||
// Retry one more time in case the terminal has not yet been initialized.
|
||||
setTimeout(() => {
|
||||
terminal = this._getTerminalById(id);
|
||||
if (terminal) {
|
||||
terminal._setProcessId(processId);
|
||||
}
|
||||
}, EXT_HOST_CREATION_DELAY);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue