1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-01 01:35:59 +01:00

Disallow empty string as node in DiscoverInfo

This commit is contained in:
Florian Schmaus 2019-06-12 22:31:29 +02:00
parent e3ec422071
commit ef88bb17d0

View file

@ -203,7 +203,7 @@ public class DiscoverInfo extends IQ implements TypedCloneable<DiscoverInfo> {
* @param node the node attribute that supplements the 'jid' attribute * @param node the node attribute that supplements the 'jid' attribute
*/ */
public void setNode(String node) { public void setNode(String node) {
this.node = node; this.node = StringUtils.requireNullOrNotEmpty(node, "The node can not be the empty string");
} }
/** /**