From 877c127e676ea398b6a8419c61c3e74813dac11b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stor=C3=B8=20Nyfl=C3=B8tt?= Date: Tue, 28 Feb 2023 19:15:00 +0100 Subject: [PATCH] Fixed a bug with the launcher crashing while not entering a key during registering --- Celeste_Launcher_Gui/Pages/RegisterPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Celeste_Launcher_Gui/Pages/RegisterPage.xaml.cs b/Celeste_Launcher_Gui/Pages/RegisterPage.xaml.cs index b1999da..4954f12 100644 --- a/Celeste_Launcher_Gui/Pages/RegisterPage.xaml.cs +++ b/Celeste_Launcher_Gui/Pages/RegisterPage.xaml.cs @@ -93,7 +93,7 @@ private async void OnRegister(object sender, RoutedEventArgs args) return; } - if (VerifyKeyField.InputContent.Length != 32) + if (string.IsNullOrEmpty(VerifyKeyField.InputContent) || VerifyKeyField.InputContent.Length != 32) { GenericMessageDialog.Show(Properties.Resources.RegisterInvalidKeyLength, DialogIcon.Error); return;