Bug 1073328 - Prevent using our own handler as system handler; r=snorp

This commit is contained in:
Jim Chen 2014-09-26 15:45:46 -04:00
parent abefa7382e
commit d33f23cdc8

View File

@ -212,7 +212,9 @@ public class GeckoAppShell
public static native void dispatchMemoryPressure();
public static void registerGlobalExceptionHandler() {
systemUncaughtHandler = Thread.getDefaultUncaughtExceptionHandler();
if (systemUncaughtHandler == null) {
systemUncaughtHandler = Thread.getDefaultUncaughtExceptionHandler();
}
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override