Commit 7bb75271 authored by Skylot's avatar Skylot

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

parent 9622c948
......@@ -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('.'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment