fix NPE for outputting to a folder that already exists.

This commit is contained in:
Connor Tumbleson 2013-08-15 10:16:52 -05:00
parent c27d514a16
commit acea65f63a

View File

@ -145,7 +145,8 @@ public class Main {
decoder.setAnalysisMode(true, false);
}
if (cli.hasOption("o") || cli.hasOption("output")) {
decoder.setOutDir(new File(cli.getOptionValue("o")));
outDir = new File(cli.getOptionValue("o"));
decoder.setOutDir(outDir);
} else {
// make out folder manually using name of apk