From 0537a2b82ac08bda9230b9c7181b2764df44247a Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Sat, 14 May 2022 21:10:43 -0500 Subject: [PATCH] fix RemoveOldQueryResults NullPointerException --- Flow.Launcher/ViewModel/MainViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 0fe3bdf8052..664a5eb19dc 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -661,7 +661,7 @@ async Task QueryTask(PluginPair plugin) private void RemoveOldQueryResults(Query query) { - if (_lastQuery.ActionKeyword != query.ActionKeyword) + if (_lastQuery?.ActionKeyword != query?.ActionKeyword) { Results.Clear(); }