diff --git a/src/vs/workbench/api/browser/mainThreadStatusBar.ts b/src/vs/workbench/api/browser/mainThreadStatusBar.ts index 33e5b948c9f..754b9bc9569 100644 --- a/src/vs/workbench/api/browser/mainThreadStatusBar.ts +++ b/src/vs/workbench/api/browser/mainThreadStatusBar.ts @@ -32,7 +32,7 @@ export class MainThreadStatusBar implements MainThreadStatusBarShape { if (accessibilityInformation) { ariaLabel = accessibilityInformation.label; } else { - ariaLabel = text.indexOf('$(') === -1 ? text : tooltip || text; + ariaLabel = text && text.indexOf('$(') === -1 ? text : tooltip || text; } const entry: IStatusbarEntry = { text, tooltip, command, color, ariaLabel };