fix NPE in TextWithLabelElement
authorKatja Luther <k.luther@bgbm.org>
Thu, 14 Jan 2021 10:07:02 +0000 (11:07 +0100)
committerKatja Luther <k.luther@bgbm.org>
Thu, 14 Jan 2021 10:07:02 +0000 (11:07 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/TextWithLabelElement.java

index cc0fcda793ac359e2952da96091b75edd4bb5bdf..b02392f7eb6b97efe254a015f7d6ab318b4f5c75 100644 (file)
@@ -154,7 +154,7 @@ public class TextWithLabelElement extends AbstractCdmFormElement implements Modi
      *            a {@link java.lang.String} object.
      */
     public void setText(String string) {
-        StoreUtil.setTextWithoutModifyListeners(text, string.trim());
+        StoreUtil.setTextWithoutModifyListeners(text, string != null? string.trim(): string);
     }
 
     @Override