Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/
package org.jivesoftware.smackx.muc;

import org.jivesoftware.smack.util.Objects;

import org.jivesoftware.smackx.disco.packet.DiscoverItems;

import org.jxmpp.jid.EntityBareJid;
Expand All @@ -40,8 +38,8 @@ public class HostedRoom {
private final String name;

public HostedRoom(DiscoverItems.Item item) {
jid = Objects.requireNonNull(item.getEntityID().asEntityBareJidIfPossible(),
"The discovered item must be an entity bare JID");
// The discovered item must be an entity bare JID
jid = item.getEntityID().asEntityBareJidOrThrow();
name = item.getName();
}

Expand Down