From f941655d6434a882ddbb9301553500e0f239aec8 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:34:42 +0800 Subject: [PATCH] Fix null reference when hotkey is invalid --- Flow.Launcher/HotkeyControl.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/HotkeyControl.xaml.cs b/Flow.Launcher/HotkeyControl.xaml.cs index 15feae6cc..b71df9758 100644 --- a/Flow.Launcher/HotkeyControl.xaml.cs +++ b/Flow.Launcher/HotkeyControl.xaml.cs @@ -103,7 +103,7 @@ namespace Flow.Launcher private void tbHotkey_LostFocus(object sender, RoutedEventArgs e) { - tbHotkey.Text = CurrentHotkey.ToString(); + tbHotkey.Text = CurrentHotkey?.ToString() ?? ""; tbHotkey.Select(tbHotkey.Text.Length, 0); }