Fix possible null reference when query is cancelled

This commit is contained in:
Jack251970 2024-11-27 20:19:31 +08:00
parent 756e718775
commit 0720779c6b

View file

@ -18,7 +18,7 @@ namespace Flow.Launcher.Storage
}
// 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)