mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 13:57: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.recordUncompressedFiles(mApkFile, mUncompressedFiles);
|
||||||
mAndrolib.writeOriginalFiles(mApkFile, outDir);
|
mAndrolib.writeOriginalFiles(mApkFile, outDir);
|
||||||
writeMetaFile();
|
writeMetaFile();
|
||||||
|
} catch (Exception ex) {
|
||||||
|
throw ex;
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
mApkFile.close();
|
mApkFile.close();
|
||||||
|
@ -56,8 +56,10 @@ public class ExtFile extends File {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
|
if (mDirectory != null) {
|
||||||
mDirectory.close();
|
mDirectory.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private Directory mDirectory;
|
private Directory mDirectory;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user