fix #5891: save null instead of empty string for text fields
authorKatja Luther <k.luther@bgbm.org>
Mon, 17 Oct 2016 08:12:44 +0000 (10:12 +0200)
committerKatja Luther <k.luther@bgbm.org>
Mon, 17 Oct 2016 08:12:44 +0000 (10:12 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TextWithLabelElement.java

index 039b54c0d7826c31c25ce617e039b2e4ae892e80..a0da22b1c4cfdd7c260546deb15844f6a4b2dca6 100644 (file)
@@ -138,7 +138,8 @@ public class TextWithLabelElement extends AbstractCdmFormElement implements Modi
      * @return a {@link java.lang.String} object.
      */
     public String getText() {
-        return text.getText();
+       
+      return CdmUtils.Nb(text.getText());
     }
 
     /**