Skip to content

Commit e2fd690

Browse files
authored
Fix: Fixed ArgumentNullException in AppUnhandledException (#13709)
1 parent 9048508 commit e2fd690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ private static void AppUnhandledException(Exception? ex, bool shouldShowNotifica
472472
Debugger.Break();
473473

474474
SaveSessionTabs();
475-
App.Logger.LogError(ex, ex.Message);
475+
Logger.LogError(ex, ex?.Message ?? "An error occured");
476476

477477
if (!ShowErrorNotification || !shouldShowNotification)
478478
return;

0 commit comments

Comments
 (0)