mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
Bugsnag 5.9.3
This commit is contained in:
@@ -2,9 +2,11 @@ package com.bugsnag.android;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -87,12 +89,7 @@ class StrictModeHandler {
|
||||
* @return the root cause of the throwable
|
||||
*/
|
||||
private Throwable getRootCause(Throwable throwable) {
|
||||
Throwable cause = throwable.getCause();
|
||||
|
||||
if (cause == null) {
|
||||
return throwable;
|
||||
} else {
|
||||
return getRootCause(cause);
|
||||
}
|
||||
List<Throwable> causes = ThrowableUtils.safeUnrollCauses(throwable);
|
||||
return causes.get(causes.size() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user