From bfb951f6ab74bc6850c6ad8d8fdd8cbb7a122097 Mon Sep 17 00:00:00 2001 From: hishitetsu <66369541+hishitetsu@users.noreply.github.com> Date: Wed, 26 Jun 2024 09:41:10 +0900 Subject: [PATCH] Update AppLifecycleHelper.cs --- src/Files.App/Helpers/Application/AppLifecycleHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.App/Helpers/Application/AppLifecycleHelper.cs b/src/Files.App/Helpers/Application/AppLifecycleHelper.cs index be9cf526f857..66219fba58b4 100644 --- a/src/Files.App/Helpers/Application/AppLifecycleHelper.cs +++ b/src/Files.App/Helpers/Application/AppLifecycleHelper.cs @@ -310,7 +310,7 @@ public static void HandleAppUnhandledException(Exception? ex, bool showToastNoti // Save the current tab list in case it was overwriten by another instance SaveSessionTabs(); - App.Logger.LogError(ex, ex?.Message ?? "An unhandled error occurred."); + App.Logger?.LogError(ex, ex?.Message ?? "An unhandled error occurred."); if (!showToastNotification) return;