fix NPE in messaging handling #4816
authorAndreas Müller <a.mueller@bgbm.org>
Wed, 22 Apr 2015 13:02:04 +0000 (13:02 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Wed, 22 Apr 2015 13:02:04 +0000 (13:02 +0000)
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java

index 414b2f47f948f81f7e5877bd9b33a53e34220d82..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
-                       if(t != null && t instanceof RuntimeException && !t.getMessage().equals("Widget is disposed")){
+                       if(t != null && t instanceof RuntimeException && ! "Widget is disposed".equals(t.getMessage())){
                                MessagingUtils.errorDialog("Unexpected error",
                                                null,
                                                MessagingUtils.UNEXPECTED_ERROR_MESSAGE,