mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 09:47:34 +01:00
Prevent closing objects that may not exist.
This commit is contained in:
parent
5e94801de1
commit
e4db1fa8d6
@ -190,10 +190,9 @@ public class Main {
|
|||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
decoder.close();
|
decoder.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException ignored) {}
|
||||||
}
|
}
|
||||||
}
|
System.exit(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void cmdBuild(CommandLine cli) throws BrutException {
|
private static void cmdBuild(CommandLine cli) throws BrutException {
|
||||||
|
@ -286,8 +286,10 @@ public class ApkDecoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
|
if (mAndrolib != null) {
|
||||||
mAndrolib.close();
|
mAndrolib.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public final static short DECODE_SOURCES_NONE = 0x0000;
|
public final static short DECODE_SOURCES_NONE = 0x0000;
|
||||||
public final static short DECODE_SOURCES_SMALI = 0x0001;
|
public final static short DECODE_SOURCES_SMALI = 0x0001;
|
||||||
|
@ -819,8 +819,10 @@ final public class AndrolibResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
|
if (mFramework != null) {
|
||||||
mFramework.close();
|
mFramework.close();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public ApkOptions apkOptions;
|
public ApkOptions apkOptions;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user