Empty text fields return empty string and not null
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 24 Jun 2015 12:19:43 +0000 (14:19 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 24 Jun 2015 12:19:43 +0000 (14:19 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TextWithLabelElement.java

index 5d666156c32630211fc70da4ae64f38e54874edf..d5f7b310542dc1212a42e43036f53a09078d8417 100644 (file)
@@ -3,7 +3,6 @@
  */
 package eu.etaxonomy.taxeditor.ui.element;
 
-import org.apache.commons.lang.StringUtils;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.KeyAdapter;
 import org.eclipse.swt.events.KeyEvent;
@@ -152,11 +151,7 @@ public class TextWithLabelElement extends AbstractCdmFormElement implements Modi
      * @return a {@link java.lang.String} object.
      */
     public String getText() {
-       if (StringUtils.isBlank(text.getText())){
-               return null;
-       }else{
-               return text.getText();
-       }
+        return text.getText();
     }
 
     /**