Skip to content

Commit

Permalink
parser will be null (KeepSafe#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
TestPlanB authored Jul 13, 2022
1 parent cd7f9df commit eb24eee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ private void loadLibraryInternal(final Context context,
parser = new ElfParser(workaroundFile);
dependencies = parser.parseNeededDependencies();
}finally {
parser.close();
if (parser != null) {
parser.close();
}
}
for (final String dependency : dependencies) {
loadLibrary(context, libraryLoader.unmapLibraryName(dependency));
Expand Down

0 comments on commit eb24eee

Please sign in to comment.