1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-19 11:39:52 +01:00

fixed a possible NPE

This commit is contained in:
Mariotaku Lee 2017-02-04 16:18:07 +08:00
parent b2cd1f0a72
commit 6c5fd5a2a1
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535

View File

@ -154,7 +154,7 @@ class MediaLoaderWrapper(val imageLoader: ImageLoader) {
imageLoader.displayImage(url, view, profileImageDisplayOptions) imageLoader.displayImage(url, view, profileImageDisplayOptions)
} }
fun loadImageSync(uri: String, targetImageSize: ImageSize, options: DisplayImageOptions): Bitmap { fun loadImageSync(uri: String, targetImageSize: ImageSize, options: DisplayImageOptions): Bitmap? {
return imageLoader.loadImageSync(uri, targetImageSize, options) return imageLoader.loadImageSync(uri, targetImageSize, options)
} }