Skip to content

Commit 129169e

Browse files
committed
Fix possible null reference when query is cancelled
1 parent 14f1a5a commit 129169e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/Storage/TopMostRecord.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class TopMostRecord
1212

1313
internal bool IsTopMost(Result result)
1414
{
15-
if (records.Count == 0 || !records.ContainsKey(result.OriginQuery.RawQuery))
15+
if (records.Count == 0 || (result.OriginQuery != null && !records.ContainsKey(result.OriginQuery.RawQuery)))
1616
{
1717
return false;
1818
}

0 commit comments

Comments
 (0)