fix(mobile): catch thumbnail cache miss (#20694)

catch error
This commit is contained in:
Mert
2025-08-05 12:32:06 -04:00
committed by GitHub
parent a573a23c83
commit 09a5963eee

View File

@@ -59,6 +59,7 @@ ImageInfo? getCachedImage(ImageProvider key) {
final ImageStreamCompleter? stream = PaintingBinding.instance.imageCache.putIfAbsent(
key,
() => throw Exception(), // don't bother loading if it isn't cached
onError: (_, __) {},
);
if (stream != null) {