Skip to content

Commit

Permalink
Fixed a bug with the launcher crashing while not entering a key durin…
Browse files Browse the repository at this point in the history
…g registering
  • Loading branch information
martinmine committed Feb 28, 2023
1 parent 4ad34ae commit 877c127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Celeste_Launcher_Gui/Pages/RegisterPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 877c127

Please sign in to comment.