mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix possible null reference when query is cancelled
This commit is contained in:
parent
756e718775
commit
0720779c6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue