Revision 11493d8f
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/TextFieldNFix.java | ||
---|---|---|
96 | 96 |
protected void setInternalValue(String newValue) { |
97 | 97 |
if(newValue != null){ |
98 | 98 |
newValue = newValue.trim(); |
99 |
if(newValue.isEmpty()){ |
|
100 |
newValue = null; |
|
101 |
} |
|
99 | 102 |
} |
100 | 103 |
super.setInternalValue(newValue); |
101 | 104 |
} |
Also available in: Unified diff
TextFieldNFix trim empty string to null