Skip to content

Commit

Permalink
Fix NPE uncovered in theme sample
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Aug 12, 2018
1 parent f6cf2af commit f1cbb9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f1cbb9d

Please sign in to comment.