Skip to content

Commit 0a12aa1

Browse files
nlutsenkofacebook-github-bot
authored andcommitted
soloader | Catch Throwable within SystemLoadWrapperSoSource instead of Exception.
Summary: The unsatisfied link error is bypassing throw here and gets catched only in SoLoader itself, catch it here so we can return nice result. Reviewed By: corporateshark Differential Revision: D66409983 fbshipit-source-id: 0f7ffc68cf08baf49e2dc32a6d5a9f40c2846af8
1 parent b5d5476 commit 0a12aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/com/facebook/soloader/SystemLoadWrapperSoSource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public int loadLibrary(String soName, int loadFlags, StrictMode.ThreadPolicy thr
3434
throws IOException {
3535
try {
3636
System.loadLibrary(soName.substring("lib".length(), soName.length() - ".so".length()));
37-
} catch (Exception e) {
37+
} catch (Throwable e) {
3838
LogUtil.e(SoLoader.TAG, "Error loading library: " + soName, e);
3939
return LOAD_RESULT_NOT_FOUND;
4040
}

0 commit comments

Comments
 (0)