From c0f25637a87a45d218523dae8bedb160d00acf2d Mon Sep 17 00:00:00 2001 From: JC-Chung <52159296+JC-Chung@users.noreply.github.com> Date: Wed, 1 Jul 2026 00:26:45 +0800 Subject: [PATCH] fix: null check for RevisionFileSearchSuggestion on key down --- src/Views/RevisionFiles.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/RevisionFiles.axaml.cs b/src/Views/RevisionFiles.axaml.cs index fabe952f3..aa274f1d9 100644 --- a/src/Views/RevisionFiles.axaml.cs +++ b/src/Views/RevisionFiles.axaml.cs @@ -29,7 +29,7 @@ private async void OnSearchBoxKeyDown(object _, KeyEventArgs e) } else if (e.Key == Key.Down || e.Key == Key.Up) { - if (vm.RevisionFileSearchSuggestion.Count > 0) + if (vm.RevisionFileSearchSuggestion?.Count > 0) { SearchSuggestionBox.Focus(NavigationMethod.Tab); SearchSuggestionBox.SelectedIndex = 0;