mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix possible null reference
This commit is contained in:
parent
b95bbb3e6a
commit
c474b304f5
1 changed files with 6 additions and 1 deletions
|
|
@ -51,6 +51,11 @@ namespace Flow.Launcher.Storage
|
|||
|
||||
private static int GenerateQueryAndResultHashCode(Query query, Result result)
|
||||
{
|
||||
if (query == null)
|
||||
{
|
||||
return GenerateResultHashCode(result);
|
||||
}
|
||||
|
||||
int hashcode = GenerateStaticHashCode(query.ActionKeyword);
|
||||
hashcode = GenerateStaticHashCode(query.Search, hashcode);
|
||||
hashcode = GenerateStaticHashCode(result.Title, hashcode);
|
||||
|
|
@ -101,4 +106,4 @@ namespace Flow.Launcher.Storage
|
|||
return selectedCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue