From b7299e5eeccd2c2dea1f6913be64a6fc5582efbb Mon Sep 17 00:00:00 2001 From: Anthony Dresser Date: Wed, 18 Sep 2019 14:53:13 -0700 Subject: [PATCH] check for undefined (#7277) --- src/sql/platform/tasks/browser/tasksRegistry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/platform/tasks/browser/tasksRegistry.ts b/src/sql/platform/tasks/browser/tasksRegistry.ts index 769659422e..72a66dbbf1 100644 --- a/src/sql/platform/tasks/browser/tasksRegistry.ts +++ b/src/sql/platform/tasks/browser/tasksRegistry.ts @@ -81,7 +81,7 @@ export abstract class Task { constructor(private opts: ITaskOptions) { this.id = opts.id; this.title = opts.title; - if (opts.iconPath.dark) { + if (opts.iconPath) { this.iconPath = { dark: URI.parse(opts.iconPath.dark), light: opts.iconPath.light ? URI.parse(opts.iconPath.light) : undefined,