Fixed crash in imageloader when feed had no image

This commit is contained in:
daniel oeh 2012-08-17 16:57:16 +02:00
parent 853ae9af79
commit fb15cba2cf
1 changed files with 1 additions and 1 deletions

View File

@ -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);