mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-13 06:17: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,7 +56,9 @@ public class ExtFile extends File {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
mDirectory.close();
|
if (mDirectory != null) {
|
||||||
|
mDirectory.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Directory mDirectory;
|
private Directory mDirectory;
|
||||||
|
Loading…
Reference in New Issue
Block a user