revert message handling for ApplicationWorkbencAdvisor #4657
authorAndreas Müller <a.mueller@bgbm.org>
Mon, 4 May 2015 14:13:38 +0000 (14:13 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Mon, 4 May 2015 14:13:38 +0000 (14:13 +0000)
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java

index cf565a622d91bb255e188cfed04337e2c97c11a3..f02297f4b69c6eddb79350405e44ec297ed3dcf0 100644 (file)
@@ -104,7 +104,7 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
                        //        leading to a recursive infinite loop of :
                        //        initial exception thrown -> status handling -> dialog opening + logging of status ->
                        //        status handling -> dialog opening + logging of status ... and so on
                        //        leading to a recursive infinite loop of :
                        //        initial exception thrown -> status handling -> dialog opening + logging of status ->
                        //        status handling -> dialog opening + logging of status ... and so on
-                       if(t != null && t instanceof RuntimeException{
+                       if(t != null && t instanceof RuntimeException && ! "Widget is disposed".equals(t.getMessage())){
                                MessagingUtils.errorDialog("Unexpected error",
                                                null,
                                                MessagingUtils.UNEXPECTED_ERROR_MESSAGE,
                                MessagingUtils.errorDialog("Unexpected error",
                                                null,
                                                MessagingUtils.UNEXPECTED_ERROR_MESSAGE,