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

NullPointerException handled for invalid save path. #1785

This commit is contained in:
Omar Morales
2020-12-08 10:43:08 -06:00
committed by soloturn
parent ed157dc80b
commit 83ef11c977

View File

@@ -282,7 +282,14 @@ class DownloadFileThread extends Thread {
logger.debug("IOException", e); logger.debug("IOException", e);
logger.error("[!] " + Utils.getLocalizedString("exception.while.downloading.file") + ": " + url + " - " logger.error("[!] " + Utils.getLocalizedString("exception.while.downloading.file") + ": " + url + " - "
+ e.getMessage()); + 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 // Close any open streams
try { try {
if (bis != null) { if (bis != null) {