Skip to content

Commit

Permalink
Fix: Fixed null ref in OpenProperties (#14627)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Feb 2, 2024
1 parent 826e00e commit 1250146
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Files.App/UserControls/Widgets/RecentFilesWidget.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ private void OpenFileLocation(RecentItem item)
private void OpenProperties(RecentItem item)
{
var flyout = HomePageContext.ItemContextFlyoutMenu;

if (item is null || flyout is null)
return;

EventHandler<object> flyoutClosed = null!;
flyoutClosed = async (s, e) =>
{
Expand Down

0 comments on commit 1250146

Please sign in to comment.