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

Set workingDir even if the file exists - this prevents an NPE later

This commit is contained in:
Zsombor Gegesy
2022-03-03 21:07:39 +01:00
committed by soloturn
parent c73092a359
commit 96acdb0fe3

View File

@@ -293,9 +293,9 @@ public abstract class AbstractJSONRipper extends AbstractRipper {
if (!Files.exists(wd)) {
LOGGER.info("[+] Creating directory: " + Utils.removeCWD(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);
}
/**