Skip to content

Commit

Permalink
fixes #42626
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jan 31, 2018
1 parent d2253a2 commit 254d9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/parts/files/common/explorerModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class FileStat implements IFileStat {
* exists locally.
*/
public static mergeLocalWithDisk(disk: FileStat, local: FileStat): void {
if (disk.resource.toString() !== local.resource.toString()) {
if (!disk || !local || disk.resource.toString() !== local.resource.toString()) {
return; // Merging only supported for stats with the same resource
}

Expand Down

0 comments on commit 254d9c8

Please sign in to comment.