Skip to content

Commit fee50c0

Browse files
committed
ImageLoader: Fix
1 parent 20bd21b commit fee50c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ public static bool TryGetValue(string path, bool loadFullImage, out ImageSource
237237

238238
public static async ValueTask<ImageSource> LoadAsync(string path, bool loadFullImage = false, bool cacheImage = true)
239239
{
240-
path = path.ToLowerInvariant();
240+
if (path != null)
241+
path = path.ToLowerInvariant();
242+
241243
var imageResult = await LoadInternalAsync(path, loadFullImage);
242244

243245
var img = imageResult.ImageSource;

0 commit comments

Comments
 (0)