handle remote access exception correctly
authorKatja Luther <k.luther@bgbm.org>
Wed, 13 Feb 2019 19:49:04 +0000 (20:49 +0100)
committerKatja Luther <k.luther@bgbm.org>
Wed, 13 Feb 2019 19:49:04 +0000 (20:49 +0100)
eu.etaxonomy.taxeditor.application/src/main/java/eu/etaxonomy/taxeditor/ApplicationWorkbenchAdvisor.java

index 5d51d9e1ee9d5aaf3276a9f945a74ee80208843d..19f848b2fd61fd602b6b8faab800ce70a27380fb 100644 (file)
@@ -120,7 +120,7 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
                    }
                        previousT = t;
 
-                if (t != null && (t.getCause() instanceof RemoteAccessException || t instanceof NoHttpResponseException || t.getCause() instanceof CdmAuthenticationException || t.getMessage().contains("status code = 403"))){
+                if (t != null && ( t instanceof NoHttpResponseException || t.getCause() instanceof CdmAuthenticationException || t.getMessage().contains("status code = 403"))){
                     MessagingUtils.informationDialog("Access denied", MessagingUtils.ACCESS_DENIED);
 
                 }else