From c6572378777901e6d235b6957096d5d7e2f8712e Mon Sep 17 00:00:00 2001 From: Fma965 Date: Tue, 30 Mar 2021 22:36:46 +0100 Subject: [PATCH] Fix crash when first start and license key is blank --- Syn3Updater/UI/Tabs/SettingsViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Syn3Updater/UI/Tabs/SettingsViewModel.cs b/Syn3Updater/UI/Tabs/SettingsViewModel.cs index b28f2954..68913ab7 100644 --- a/Syn3Updater/UI/Tabs/SettingsViewModel.cs +++ b/Syn3Updater/UI/Tabs/SettingsViewModel.cs @@ -312,7 +312,7 @@ private void ApplySettingsAction() } } - if (LicenseKey.Length < 10) LicenseKey = ""; + if (LicenseKey?.Length < 10) LicenseKey = ""; ApplicationManager.Instance.FireHomeTabEvent(); }