Skip to content

Commit

Permalink
Fix swallow NDK loadLibrary errors (#4082)
Browse files Browse the repository at this point in the history
* Fix swallow NDK loadLibrary errors

* Update Changelog
  • Loading branch information
markushi authored Jan 21, 2025
1 parent 5989b29 commit fc52a26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ If you have been using `8.0.0-rc.4` of the Java SDK, here's the new changes that
- 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.
- As a consequence the list of exceptions in the group on top of an issue is no longer shown in Sentry UI.
- We are planning to improve this in the future but opted for this fix first.
- Fix swallow NDK loadLibrary errors ([#4082](https://github.com/getsentry/sentry-java/pull/4082))

## 7.20.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ private SentryNdk() {}
try {
//noinspection UnstableApiUsage
io.sentry.ndk.SentryNdk.loadNativeLibraries();
} catch (Throwable t) {
// ignored
// if loadLibrary() fails, the later init() will throw an exception anyway
} finally {
loadLibraryLatch.countDown();
}
Expand Down

0 comments on commit fc52a26

Please sign in to comment.