Bugfix: Deleting a feed without an image caused an application crash

This commit is contained in:
daniel oeh 2012-09-03 13:46:24 +02:00
parent b1c862142f
commit 7d4f2aeb74
1 changed files with 2 additions and 2 deletions

View File

@ -167,9 +167,9 @@ public class FeedManager {
&& feed.getImage().getFile_url() != null) { && feed.getImage().getFile_url() != null) {
File imageFile = new File(feed.getImage().getFile_url()); File imageFile = new File(feed.getImage().getFile_url());
imageFile.delete(); imageFile.delete();
} else if (requester.isDownloadingFile(feed.getImage())) {
requester.cancelDownload(context, feed.getImage());
} }
} else if (requester.isDownloadingFile(feed.getImage())) {
requester.cancelDownload(context, feed.getImage());
} }
// delete stored media files and mark them as read // delete stored media files and mark them as read
for (FeedItem item : feed.getItems()) { for (FeedItem item : feed.getItems()) {