Skip to content

Commit b4201ed

Browse files
authored
fix: null check for RevisionFileSearchSuggestion on key down (#2501)
1 parent fe99f4a commit b4201ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Views/RevisionFiles.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private async void OnSearchBoxKeyDown(object _, KeyEventArgs e)
2929
}
3030
else if (e.Key == Key.Down || e.Key == Key.Up)
3131
{
32-
if (vm.RevisionFileSearchSuggestion.Count > 0)
32+
if (vm.RevisionFileSearchSuggestion?.Count > 0)
3333
{
3434
SearchSuggestionBox.Focus(NavigationMethod.Tab);
3535
SearchSuggestionBox.SelectedIndex = 0;

0 commit comments

Comments
 (0)