From f1cbb9d22c6ef6933770be9c21ea0b78806426ff Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 10 Aug 2018 18:05:34 +0200 Subject: [PATCH] Fix NPE uncovered in theme sample --- src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts b/src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts index 61e358dc4a0a6..f72758ff75e54 100644 --- a/src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts +++ b/src/vs/editor/standalone/browser/standaloneThemeServiceImpl.ts @@ -100,7 +100,7 @@ class StandaloneTheme implements IStandaloneTheme { } public defines(colorId: ColorIdentifier): boolean { - return this.getColors().hasOwnProperty(colorId); + return Object.prototype.hasOwnProperty.call(this.getColors(), colorId); } public get type() {