Skip to content

Commit 0720779

Browse files
committed
Fix possible null reference when query is cancelled
1 parent 756e718 commit 0720779

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
@@ -18,7 +18,7 @@ internal bool IsTopMost(Result result)
1818
}
1919

2020
// since this dictionary should be very small (or empty) going over it should be pretty fast.
21-
return records[result.OriginQuery.RawQuery].Equals(result);
21+
return result.OriginQuery != null && records[result.OriginQuery.RawQuery].Equals(result);
2222
}
2323

2424
internal void Remove(Result result)

0 commit comments

Comments
 (0)