From 95ba24b268123d7e5c05493821e077b58d17ca24 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 25 Jan 2019 17:12:41 +0100 Subject: [PATCH] Fix strict null issue in taskDefinitionRegistry.ts --- src/vs/workbench/parts/tasks/common/taskDefinitionRegistry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/tasks/common/taskDefinitionRegistry.ts b/src/vs/workbench/parts/tasks/common/taskDefinitionRegistry.ts index d83dd56628d..ab8a3a4231e 100644 --- a/src/vs/workbench/parts/tasks/common/taskDefinitionRegistry.ts +++ b/src/vs/workbench/parts/tasks/common/taskDefinitionRegistry.ts @@ -100,7 +100,7 @@ class TaskDefinitionRegistryImpl implements ITaskDefinitionRegistry { for (let extension of delta.removed) { let taskTypes = extension.value; for (let taskType of taskTypes) { - if (this.taskTypes && this.taskTypes[taskType.type]) { + if (this.taskTypes && taskType.type && this.taskTypes[taskType.type]) { delete this.taskTypes[taskType.type]; } }