mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
Disallow empty string as node in DiscoverInfo
This commit is contained in:
parent
e3ec422071
commit
ef88bb17d0
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue