提交 95ba24b2 编写于 作者: A Alex Ross

Fix strict null issue in taskDefinitionRegistry.ts

上级 04dd8758
......@@ -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];
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册