Skip to content

Commit

Permalink
Cannot read property 'hidesExplorerArrows' of undefined. Fixes #49550
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed May 14, 2018
1 parent 2fd0f20 commit 1055627
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function _loadIconThemeDocument(fileSetPath: string): TPromise<IconThemeDocument
return pfs.readFile(fileSetPath).then(content => {
let errors: Json.ParseError[] = [];
let contentValue = Json.parse(content.toString(), errors);
if (errors.length > 0) {
if (errors.length > 0 || !contentValue) {
return TPromise.wrapError(new Error(nls.localize('error.cannotparseicontheme', "Problems parsing file icons file: {0}", errors.map(e => getParseErrorMessage(e.error)).join(', '))));
}
return TPromise.as(contentValue);
Expand Down

0 comments on commit 1055627

Please sign in to comment.