Merge pull request #4269 from ByteHamster/fix-filenotfound

Fixed file not found exception after database import
This commit is contained in:
H. Lehmann 2020-07-06 22:56:15 +02:00 committed by GitHub
commit 8d1cc82258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ public class DownloadRequester implements DownloadStateProvider {
} }
File dest; File dest;
if (feedmedia.getFile_url() != null) { if (feedmedia.getFile_url() != null && new File(feedmedia.getFile_url()).exists()) {
dest = new File(feedmedia.getFile_url()); dest = new File(feedmedia.getFile_url());
} else { } else {
dest = new File(getMediafilePath(feedmedia), getMediafilename(feedmedia)); dest = new File(getMediafilePath(feedmedia), getMediafilename(feedmedia));