mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-14 06:51:08 +01:00
Accept an empty string as the label value
This commit is contained in:
parent
bc281d84a7
commit
1956048811
3 changed files with 47 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ import org.jivesoftware.smack.util.CollectionUtil;
|
|||
import org.jivesoftware.smack.util.EqualsUtil;
|
||||
import org.jivesoftware.smack.util.HashCode;
|
||||
import org.jivesoftware.smack.util.MultiMap;
|
||||
import org.jivesoftware.smack.util.Objects;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smack.util.XmlStringBuilder;
|
||||
|
||||
|
|
@ -600,7 +601,7 @@ public abstract class FormField implements XmlElement {
|
|||
* @return a reference to this builder.
|
||||
*/
|
||||
public B setLabel(String label) {
|
||||
this.label = StringUtils.requireNotNullNorEmpty(label, "label must not be null or empty");
|
||||
this.label = Objects.requireNonNull(label, "label must not be null");
|
||||
return getThis();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue