diff --git a/Flow.Launcher/Storage/TopMostRecord.cs b/Flow.Launcher/Storage/TopMostRecord.cs index 50ce96ded..a088353f5 100644 --- a/Flow.Launcher/Storage/TopMostRecord.cs +++ b/Flow.Launcher/Storage/TopMostRecord.cs @@ -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)