1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-06-23 03:54:54 +02: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
*/
public void setNode(String node) {
this.node = node;
this.node = StringUtils.requireNullOrNotEmpty(node, "The node can not be the empty string");
}
/**