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;