From db972a1bc19312790f71d533a39b5c63bdd2b810 Mon Sep 17 00:00:00 2001 From: masewo Date: Wed, 23 Aug 2023 03:24:16 +0200 Subject: [PATCH] Try catch request cache thumbnail (#975) --- .../com/fluttercandies/photo_manager/core/PhotoManager.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManager.kt b/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManager.kt index 45e368b5..3494f649 100644 --- a/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManager.kt +++ b/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManager.kt @@ -264,7 +264,12 @@ class PhotoManager(private val context: Context) { if (cacheFuture.isCancelled) { return@execute } - cacheFuture.get() + + try { + cacheFuture.get() + } catch (e: Exception) { + LogUtils.error(e) + } } } }