Fixed crash in imageloader when feed had no image
This commit is contained in:
parent
853ae9af79
commit
fb15cba2cf
|
@ -104,7 +104,7 @@ public class FeedImageLoader {
|
|||
}
|
||||
|
||||
public void loadCoverBitmap(FeedImage image, ImageView target) {
|
||||
if (image.getFile_url() != null) {
|
||||
if (image != null && image.getFile_url() != null) {
|
||||
Bitmap bitmap = getBitmapFromCoverCache(image.getFile_url());
|
||||
if (bitmap != null) {
|
||||
target.setImageBitmap(bitmap);
|
||||
|
|
Loading…
Reference in New Issue