1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-13 17:34:13 +02:00

Merge pull request #1811 from OmarMorales71/invalid-save-path

NullPointerException handled for invalid save path. #1785
This commit is contained in:
cyian-1756
2021-09-01 18:51:25 +00:00
committed by GitHub

View File

@@ -282,7 +282,14 @@ class DownloadFileThread extends Thread {
logger.debug("IOException", e);
logger.error("[!] " + Utils.getLocalizedString("exception.while.downloading.file") + ": " + url + " - "
+ e.getMessage());
} finally {
} catch (NullPointerException npe){
logger.error("[!] " + Utils.getLocalizedString("failed.to.download") + " for URL " + url);
observer.downloadErrored(url,
Utils.getLocalizedString("failed.to.download") + " " + url.toExternalForm());
return;
}finally {
// Close any open streams
try {
if (bis != null) {