File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
sentry-android-core/src/main/java/io/sentry/android/core Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5- * Fix: Sentry Timber integration does not submit msg.formatted breadcrumbs (#)
5+ * Fix: Sentry Timber integration does not submit msg.formatted breadcrumbs (#1957 )
6+ * Fix: ANR WatchDog won't crash on SecurityException ([ #1962 ] ( https://github.com/getsentry/sentry-java/pull/1962 ) )
7+
68
79## 5.7.0
810
Original file line number Diff line number Diff line change @@ -77,7 +77,15 @@ public void run() {
7777 try {
7878 Thread .sleep (interval );
7979 } catch (InterruptedException e ) {
80- Thread .currentThread ().interrupt ();
80+ try {
81+ Thread .currentThread ().interrupt ();
82+ } catch (SecurityException ignored ) {
83+ logger .log (
84+ SentryLevel .WARNING ,
85+ "Failed to interrupt due to SecurityException: %s" ,
86+ e .getMessage ());
87+ return ;
88+ }
8189 logger .log (SentryLevel .WARNING , "Interrupted: %s" , e .getMessage ());
8290 return ;
8391 }
You can’t perform that action at this time.
0 commit comments