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
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class MediaLoaderWrapper(val imageLoader: ImageLoader) {
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)
}