mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-15 10:24:04 +02:00
Merge pull request #1811 from OmarMorales71/invalid-save-path
NullPointerException handled for invalid save path. #1785
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user