Skip to content

Commit 653dc83

Browse files
committed
fix error thrown in checking cache key when key is null
1 parent a083528 commit 653dc83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/Image/ImageCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async void SliceExtra()
8484

8585
public bool ContainsKey(string key)
8686
{
87-
return Data.ContainsKey(key) && Data[key].imageSource != null;
87+
return key is not null && Data.ContainsKey(key) && Data[key].imageSource != null;
8888
}
8989

9090
public int CacheSize()

0 commit comments

Comments
 (0)