Pass new File("somefile.txt") to extractEntryWithTmpFile, run the program:
Exception in thread "main" java.lang.NullPointerException
at java.io.File.<init>(File.java:239)
at de.idyl.winzipaes.AesZipFileDecrypter.extractEntryWithTmpFile(AesZipFileDecrypter.java:206)
The code examination suggests that getParent() can return null if the filename
of outFile doesn't have any directory. new File(null) then throws the exception.
// create tmp file that contains the decrypted, but still compressed data
File tmpFile = new File( outFile.getPath() + "_TMP.zip" );
makeDir( new File(tmpFile.getParent()) );
Original issue reported on code.google.com by avay...@gmail.com on 3 Apr 2012 at 5:34
Original issue reported on code.google.com by
avay...@gmail.com
on 3 Apr 2012 at 5:34