mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Check null and return input value in UserSelectedRecord.cs to avoid error thrown.
This commit is contained in:
parent
c7cfd25817
commit
b3c6466053
1 changed files with 6 additions and 1 deletions
|
|
@ -28,6 +28,11 @@ namespace Flow.Launcher.Storage
|
|||
|
||||
private static int GenerateStaticHashCode(string s, int start = HASH_INITIAL)
|
||||
{
|
||||
if (s == null)
|
||||
{
|
||||
return start;
|
||||
}
|
||||
|
||||
unchecked
|
||||
{
|
||||
// skip the empty space
|
||||
|
|
@ -101,4 +106,4 @@ namespace Flow.Launcher.Storage
|
|||
return selectedCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue