Fixed crash when parser error occured

This commit is contained in:
daniel oeh 2012-07-10 21:03:01 +02:00
parent 919e978f8d
commit bdc4651e92
1 changed files with 3 additions and 0 deletions

View File

@ -406,6 +406,9 @@ public class DownloadService extends Service {
requester.removeDownload(feed); requester.removeDownload(feed);
cleanup(); cleanup();
if (savedFeed == null) {
savedFeed = feed;
}
long statusId = saveDownloadStatus(new DownloadStatus(savedFeed, long statusId = saveDownloadStatus(new DownloadStatus(savedFeed,
reason, successful)); reason, successful));
sendDownloadHandledIntent(downloadId, statusId, hasImage, imageId); sendDownloadHandledIntent(downloadId, statusId, hasImage, imageId);