Skip to content

Commit

Permalink
Fix possible null reference when query is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack251970 committed Nov 27, 2024
1 parent 756e718 commit 0720779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Flow.Launcher/Storage/TopMostRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal bool IsTopMost(Result result)
}

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

internal void Remove(Result result)
Expand Down

0 comments on commit 0720779

Please sign in to comment.