#57: Fixed null pointer exception when output jar directory is the same as the working directory.

This commit is contained in:
Human Gamer 2020-02-16 09:31:20 +11:00 committed by md_5
parent 378cd78432
commit c6c8cc3e36

View File

@ -176,7 +176,7 @@ public class JarRemapper extends CustomRemapper {
if (jar == null) {
return;
}
if (!target.getParentFile().exists()) {
if (target.getParentFile() != null && !target.getParentFile().exists()) {
target.getParentFile().mkdirs();
}
ClassRepo repo = new JarRepo(jar);