mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1550185 - Ensure GeckoView CrashHandler.getRootException() does not return null r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D30422 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
d229732882
commit
c5622ff657
@ -56,10 +56,12 @@ public class CrashHandler implements Thread.UncaughtExceptionHandler {
|
||||
*/
|
||||
public static Throwable getRootException(final Throwable exc) {
|
||||
Throwable cause;
|
||||
Throwable result = exc;
|
||||
for (cause = exc; cause != null; cause = cause.getCause()) {
|
||||
result = cause;
|
||||
}
|
||||
|
||||
return cause;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user