mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-22 21:43:06 +02:00
Set workingDir even if the file exists - this prevents an NPE later
This commit is contained in:
@@ -293,9 +293,9 @@ public abstract class AbstractJSONRipper extends AbstractRipper {
|
|||||||
if (!Files.exists(wd)) {
|
if (!Files.exists(wd)) {
|
||||||
LOGGER.info("[+] Creating directory: " + Utils.removeCWD(wd));
|
LOGGER.info("[+] Creating directory: " + Utils.removeCWD(wd));
|
||||||
Files.createDirectory(wd);
|
Files.createDirectory(wd);
|
||||||
this.workingDir = wd.toFile();
|
|
||||||
}
|
}
|
||||||
LOGGER.debug("Set working directory to: " + this.workingDir);
|
this.workingDir = wd.toFile();
|
||||||
|
LOGGER.info("Set working directory to: {}", this.workingDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user