fix: NPE if loading local file from CLI (jadx sample.apk)

This commit is contained in:
Skylot
2019-05-12 18:22:45 +03:00
parent 9622c948c9
commit 7bb752715f
@@ -32,7 +32,7 @@ public class RenameVisitor extends AbstractVisitor {
return;
}
InputFile firstInputFile = dexNodes.get(0).getDexFile().getInputFile();
Path inputFilePath = firstInputFile.getFile().toPath();
Path inputFilePath = firstInputFile.getFile().getAbsoluteFile().toPath();
String inputName = inputFilePath.getFileName().toString();
String baseName = inputName.substring(0, inputName.lastIndexOf('.'));