1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-26 04:28:00 +01:00

[muc] Null-check GroupChatInviation's 'roomAddress' argument

This commit is contained in:
Florian Schmaus 2022-08-03 17:39:30 +02:00
parent 711d7d92bd
commit 5e1cd62021

View file

@ -20,6 +20,7 @@ import javax.xml.namespace.QName;
import org.jivesoftware.smack.packet.ExtensionElement; import org.jivesoftware.smack.packet.ExtensionElement;
import org.jivesoftware.smack.packet.Stanza; import org.jivesoftware.smack.packet.Stanza;
import org.jivesoftware.smack.util.Objects;
import org.jivesoftware.smack.util.XmlStringBuilder; import org.jivesoftware.smack.util.XmlStringBuilder;
import org.jxmpp.jid.EntityBareJid; import org.jxmpp.jid.EntityBareJid;
@ -78,7 +79,7 @@ public class GroupChatInvitation implements ExtensionElement {
* @param roomAddress the address of the group chat room. * @param roomAddress the address of the group chat room.
*/ */
public GroupChatInvitation(EntityBareJid roomAddress) { public GroupChatInvitation(EntityBareJid roomAddress) {
this.roomAddress = roomAddress; this.roomAddress = Objects.requireNonNull(null);
} }
/** /**