Fixed file not found exception after database import
This commit is contained in:
parent
0e05a8af7b
commit
fecc65c803
|
@ -274,7 +274,7 @@ public class DownloadRequester implements DownloadStateProvider {
|
|||
}
|
||||
|
||||
File dest;
|
||||
if (feedmedia.getFile_url() != null) {
|
||||
if (feedmedia.getFile_url() != null && new File(feedmedia.getFile_url()).exists()) {
|
||||
dest = new File(feedmedia.getFile_url());
|
||||
} else {
|
||||
dest = new File(getMediafilePath(feedmedia), getMediafilename(feedmedia));
|
||||
|
|
Loading…
Reference in New Issue