Check null and return input value in UserSelectedRecord.cs to avoid error thrown.

This commit is contained in:
Kevin Zhang 2021-07-05 11:48:30 +08:00
parent c7cfd25817
commit b3c6466053

View file

@ -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;
}
}
}
}