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:
Randall E. Barker 2019-05-08 21:23:13 +00:00
parent d229732882
commit c5622ff657

View File

@ -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;
}
/**