Skip to content

fix: null check for RevisionFileSearchSuggestion on key down#2501

Open
JC-Chung wants to merge 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/null-revision-file-search-suggestion
Open

fix: null check for RevisionFileSearchSuggestion on key down#2501
JC-Chung wants to merge 1 commit into
sourcegit-scm:developfrom
JC-Chung:fix/null-revision-file-search-suggestion

Conversation

@JC-Chung

Copy link
Copy Markdown
Contributor

RevisionFileSearchSuggestion is initialized to null and reset to
null by CancelRevisionFileSuggestions. Pressing Up or Down in the
revision file search box calls .Count on a null reference, causing a crash.

Fix by using ?.Count instead of .Count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant