From 4649b5333370139d161e7b5d4f78ca13741efa35 Mon Sep 17 00:00:00 2001 From: Bhavya U Date: Wed, 28 Jun 2023 00:25:43 -0700 Subject: [PATCH] Added null check before building getting started slide. (#186468) Add null check before building getting started slide. --- .../contrib/welcomeGettingStarted/browser/gettingStarted.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts index 78c7109ec4f60..67934834f0566 100644 --- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts +++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts @@ -1151,7 +1151,7 @@ export class GettingStartedPage extends EditorPane { this.featuredExtensionsList?.layout(size); this.recentlyOpenedList?.layout(size); - if (this.editorInput.selectedStep && this.currentMediaType) { + if (this.editorInput?.selectedStep && this.currentMediaType) { this.mediaDisposables.clear(); this.stepDisposables.clear(); this.buildMediaComponent(this.editorInput.selectedStep);