mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-23 02:07:36 +01:00
Merge pull request #1492 from iBotPeaches/issue-1160
Prevent closing objects that may not exist.
This commit is contained in:
commit
7947f115b0
@ -190,10 +190,9 @@ public class Main {
|
||||
} finally {
|
||||
try {
|
||||
decoder.close();
|
||||
} catch (IOException e) {
|
||||
}
|
||||
} catch (IOException ignored) {}
|
||||
}
|
||||
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
private static void cmdBuild(CommandLine cli) throws BrutException {
|
||||
|
@ -286,7 +286,9 @@ public class ApkDecoder {
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
mAndrolib.close();
|
||||
if (mAndrolib != null) {
|
||||
mAndrolib.close();
|
||||
}
|
||||
}
|
||||
|
||||
public final static short DECODE_SOURCES_NONE = 0x0000;
|
||||
|
@ -819,7 +819,9 @@ final public class AndrolibResources {
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
mFramework.close();
|
||||
if (mFramework != null) {
|
||||
mFramework.close();
|
||||
}
|
||||
}
|
||||
|
||||
public ApkOptions apkOptions;
|
||||
|
Loading…
x
Reference in New Issue
Block a user