From 0b7a5c08f7f7559a3f58e9389b4478423c436099 Mon Sep 17 00:00:00 2001 From: Amir Grozki Date: Mon, 17 May 2021 07:05:46 +0300 Subject: [PATCH] Another minor fix. --- Catalog.Wpf/ViewModel/EditGameViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Catalog.Wpf/ViewModel/EditGameViewModel.cs b/Catalog.Wpf/ViewModel/EditGameViewModel.cs index cf18abd..b688542 100644 --- a/Catalog.Wpf/ViewModel/EditGameViewModel.cs +++ b/Catalog.Wpf/ViewModel/EditGameViewModel.cs @@ -426,7 +426,7 @@ public ViewStatus Status public string StatusDescription => Status switch { - ViewStatus.Error => $"Error: {CurrentException.Message}", + ViewStatus.Error => CurrentException == null ? "Unknown Error" : $"Error: {CurrentException.Message}", var status => status.GetDescription() };