Don't crash (not for this)

This commit is contained in:
Martin Fietz 2016-04-12 12:26:56 +02:00
parent 989f2e1c58
commit 1f2c5b5efb

View File

@ -995,8 +995,8 @@ public class DownloadService extends Service {
public void run() {
FeedMedia media = DBReader.getFeedMedia(request.getFeedfileId());
if (media == null) {
throw new IllegalStateException(
"Could not find downloaded media object in database");
Log.e(TAG, "Could not find downloaded media object in database");
return;
}
media.setDownloaded(true);
media.setFile_url(request.getDestination());