Fix NPE on OS resume

pull/65906/head
Daniel Imms 2018-12-31 20:15:40 -08:00
parent 452cd1ddca
commit 182bacc4d0
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ export class TerminalService extends AbstractTerminalService implements ITermina
}
});
ipc.on('vscode:osResume', () => {
this.getActiveTab().terminalInstances.forEach(instance => instance.forceRedraw());
const activeTab = this.getActiveTab();
if (!activeTab) {
return;
}
activeTab.terminalInstances.forEach(instance => instance.forceRedraw());
});
}