mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +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.
|
// Retry one more time in case the terminal has not yet been initialized.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
terminal = this._getTerminalById(id);
|
terminal = this._getTerminalById(id);
|
||||||
terminal._setProcessId(processId);
|
if (terminal) {
|
||||||
|
terminal._setProcessId(processId);
|
||||||
|
}
|
||||||
}, EXT_HOST_CREATION_DELAY);
|
}, EXT_HOST_CREATION_DELAY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue