From c6a194dcf933dd7a4e2bf6b92bcb417957aba765 Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 10 Feb 2015 22:23:12 -0500 Subject: ignore harmless exceptions I can't fix fyi, it's really hard to test this fix because the exception is not generally reproducable --- src/cuchaz/enigma/gui/Gui.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/cuchaz/enigma/gui') diff --git a/src/cuchaz/enigma/gui/Gui.java b/src/cuchaz/enigma/gui/Gui.java index 187ef5b..00cff59 100644 --- a/src/cuchaz/enigma/gui/Gui.java +++ b/src/cuchaz/enigma/gui/Gui.java @@ -70,6 +70,7 @@ import jsyntaxpane.DefaultSyntaxKit; import com.google.common.collect.Lists; import cuchaz.enigma.Constants; +import cuchaz.enigma.ExceptionIgnorer; import cuchaz.enigma.analysis.BehaviorReferenceTreeNode; import cuchaz.enigma.analysis.ClassImplementationsTreeNode; import cuchaz.enigma.analysis.ClassInheritanceTreeNode; @@ -147,9 +148,11 @@ public class Gui { CrashDialog.init(m_frame); Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() { @Override - public void uncaughtException(Thread thread, Throwable ex) { - ex.printStackTrace(System.err); - CrashDialog.show(ex); + public void uncaughtException(Thread thread, Throwable t) { + t.printStackTrace(System.err); + if (!ExceptionIgnorer.shouldIgnore(t)) { + CrashDialog.show(t); + } } }); } -- cgit v1.2.3