Merge pull request #1492 from iBotPeaches/issue-1160

Prevent closing objects that may not exist.
This commit is contained in:
Connor Tumbleson 2017-05-05 07:13:30 -04:00 committed by GitHub
commit 7947f115b0
3 changed files with 8 additions and 5 deletions

View File

@ -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 {

View File

@ -286,8 +286,10 @@ public class ApkDecoder {
}
public void close() throws IOException {
if (mAndrolib != null) {
mAndrolib.close();
}
}
public final static short DECODE_SOURCES_NONE = 0x0000;
public final static short DECODE_SOURCES_SMALI = 0x0001;

View File

@ -819,8 +819,10 @@ final public class AndrolibResources {
}
public void close() throws IOException {
if (mFramework != null) {
mFramework.close();
}
}
public ApkOptions apkOptions;