fix RemoveOldQueryResults NullPointerException (#1204)

This commit is contained in:
Kevin Zhang 2022-07-21 05:12:24 -05:00 committed by GitHub
parent 8b8b6ae573
commit 886eb8650d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -664,7 +664,7 @@ namespace Flow.Launcher.ViewModel
private void RemoveOldQueryResults(Query query)
{
if (_lastQuery.ActionKeyword != query.ActionKeyword)
if (_lastQuery?.ActionKeyword != query?.ActionKeyword)
{
Results.Clear();
}