Skip to content

Commit

Permalink
Fix: Fixed NullReferenceException in Item_Opening (#14784)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu authored Feb 20, 2024
1 parent e798516 commit 56168ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/UserControls/Menus/FileTagsContextMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void Item_Opening(object? sender, object e)

// go through each tag and find the common one for all files
var commonFileTags = SelectedItems
.Select(x => x.FileTags ?? Enumerable.Empty<string>())
.Select(x => x?.FileTags ?? Enumerable.Empty<string>())
.Aggregate((x, y) => x.Intersect(y))
.Select(x => Items.FirstOrDefault(y => x == ((TagViewModel)y.Tag)?.Uid));

Expand Down

0 comments on commit 56168ec

Please sign in to comment.