|
@@ -74,7 +74,13 @@ object BitmapUtils {
|
|
} finally {
|
|
} finally {
|
|
outputStream?.close()
|
|
outputStream?.close()
|
|
}
|
|
}
|
|
- response?.invoke(resource.apply { density = 480 })
|
|
|
|
|
|
+ try {
|
|
|
|
+ response?.invoke(resource.apply { density = 480 })
|
|
|
|
+ } catch (e: NullPointerException){
|
|
|
|
+ LogUtil.d("BitmapUtils", "NullPointerException in onResourceReady: ${e.message}")
|
|
|
|
+ e.printStackTrace()
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
override fun onLoadCleared(placeholder: Drawable?) {
|
|
override fun onLoadCleared(placeholder: Drawable?) {
|