Skip to content

Commit b3c6466

Browse files
committed
Check null and return input value in UserSelectedRecord.cs to avoid error thrown.
1 parent c7cfd25 commit b3c6466

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Flow.Launcher/Storage/UserSelectedRecord.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public UserSelectedRecord()
2828

2929
private static int GenerateStaticHashCode(string s, int start = HASH_INITIAL)
3030
{
31+
if (s == null)
32+
{
33+
return start;
34+
}
35+
3136
unchecked
3237
{
3338
// skip the empty space
@@ -101,4 +106,4 @@ public int GetSelectedCount(Result result)
101106
return selectedCount;
102107
}
103108
}
104-
}
109+
}

0 commit comments

Comments
 (0)