preliminary throw exception for invalid URIs
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 20 Oct 2020 17:18:33 +0000 (19:18 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 20 Oct 2020 17:18:56 +0000 (19:18 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractUriWithExceptionLabelElement.java

index 49db379c64d3a39897c04170f6562d1281534704..f25ffa4c6413d451b857bc34eb47f12d546ae547 100644 (file)
@@ -74,8 +74,9 @@ public abstract class AbstractUriWithExceptionLabelElement <T> extends TextWithL
             initExceptionLabel(getLayoutComposite(), formFactory);
             labelException.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT));
             labelException.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_RED));
-            labelException.setText(Messages.UriWithLabelElement_URL_NOT_SAVED+e.getLocalizedMessage());
-            return null;
+            labelException.setText(Messages.UriWithLabelElement_URL_NOT_SAVED + e.getLocalizedMessage());
+            throw new RuntimeException(e);
+//            return null;
         }
     }