fix #6947: fix error for empty lsid field
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / LsidWithExceptionLabelElement.java
index 1bea7349c4a3d08ff09357f8d0d8a27701e0da9e..cb8a4629fd020fd3bc71cad114f9d481c57e073f 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 /**
 * Copyright (C) 2007 EDIT
 * European Distributed Institute of Taxonomy
@@ -40,7 +39,11 @@ public class LsidWithExceptionLabelElement extends AbstractUriWithExceptionLabel
         */
        @Override
        public LSID getParsedText() throws Exception {
-            return new LSID(super.getText());
+            String uriText = super.getText();
+            if(uriText!=null){
+                return new LSID(uriText);
+            }
+            return null;
        }
 
 }