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
Родитель 52a3b4cf21
Коммит af3e8ad806
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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