mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 05:47:46 +01:00
Pass exception back to user
- check object is not null before closing - refs #1160
This commit is contained in:
parent
7947f115b0
commit
e2f77aac18
@ -167,6 +167,8 @@ public class ApkDecoder {
|
||||
mAndrolib.recordUncompressedFiles(mApkFile, mUncompressedFiles);
|
||||
mAndrolib.writeOriginalFiles(mApkFile, outDir);
|
||||
writeMetaFile();
|
||||
} catch (Exception ex) {
|
||||
throw ex;
|
||||
} finally {
|
||||
try {
|
||||
mApkFile.close();
|
||||
|
@ -56,7 +56,9 @@ public class ExtFile extends File {
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
mDirectory.close();
|
||||
if (mDirectory != null) {
|
||||
mDirectory.close();
|
||||
}
|
||||
}
|
||||
|
||||
private Directory mDirectory;
|
||||
|
Loading…
Reference in New Issue
Block a user