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
1 changed files with 1 additions and 1 deletions

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");
}
/**