Skip to content

Commit

Permalink
Crash in extension reading configuration values on startup (fixes #17807
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bpasero committed Jan 4, 2017
1 parent c6a320c commit ada971a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/platform/configuration/common/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function getConfigurationValue<T>(config: any, settingPath: string, defau
let current = config;
for (let i = 0; i < path.length; i++) {
current = current[path[i]];
if (typeof current === 'undefined') {
if (typeof current === 'undefined' || current === null) {
return undefined;
}
}
Expand Down

0 comments on commit ada971a

Please sign in to comment.