mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Prevent possible NPE
This commit is contained in:
@@ -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);
|
||||
terminal._setProcessId(processId);
|
||||
if (terminal) {
|
||||
terminal._setProcessId(processId);
|
||||
}
|
||||
}, EXT_HOST_CREATION_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user