Skip to content

Commit fc52a26

Browse files
authored
Fix swallow NDK loadLibrary errors (#4082)
* Fix swallow NDK loadLibrary errors * Update Changelog
1 parent 5989b29 commit fc52a26

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ If you have been using `8.0.0-rc.4` of the Java SDK, here's the new changes that
295295
- Due to how grouping works in Sentry currently sometimes the suppressed exception is treated as the main exception. This change ensures we keep using the main exception and not change how grouping works.
296296
- As a consequence the list of exceptions in the group on top of an issue is no longer shown in Sentry UI.
297297
- We are planning to improve this in the future but opted for this fix first.
298+
- Fix swallow NDK loadLibrary errors ([#4082](https://github.com/getsentry/sentry-java/pull/4082))
298299

299300
## 7.20.0
300301

sentry-android-ndk/src/main/java/io/sentry/android/ndk/SentryNdk.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ private SentryNdk() {}
2222
try {
2323
//noinspection UnstableApiUsage
2424
io.sentry.ndk.SentryNdk.loadNativeLibraries();
25+
} catch (Throwable t) {
26+
// ignored
27+
// if loadLibrary() fails, the later init() will throw an exception anyway
2528
} finally {
2629
loadLibraryLatch.countDown();
2730
}

0 commit comments

Comments
 (0)