提交 93c77d52 编写于 作者: A Alex Ross

Fix undefined terminal when running task

上级 9517c8c5
......@@ -925,7 +925,7 @@ export class TerminalTaskSystem implements ITaskSystem {
// (or, if the task has no group, a terminal used by a task without group).
for (const taskId of this.idleTaskTerminals.keys()) {
const idleTerminalId = this.idleTaskTerminals.get(taskId)!;
if (idleTerminalId && this.terminals[idleTerminalId].group === group) {
if (idleTerminalId && this.terminals[idleTerminalId] && this.terminals[idleTerminalId].group === group) {
terminalId = this.idleTaskTerminals.remove(taskId);
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册