1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-02 00:42:07 +01:00

Fix MultiUserChat.enter() 'nickname' check

It's no longer necessary to check if 'nickname' is set. The
MucEnterConfiguration API already enforces that.
This commit is contained in:
Florian Schmaus 2015-07-15 22:36:10 +02:00
parent 46f9b9ab39
commit ea00caca31

View file

@ -295,7 +295,6 @@ public class MultiUserChat {
*/ */
private Presence enter(MucEnterConfiguration conf) throws NotConnectedException, NoResponseException, private Presence enter(MucEnterConfiguration conf) throws NotConnectedException, NoResponseException,
XMPPErrorException, InterruptedException, NotAMucServiceException { XMPPErrorException, InterruptedException, NotAMucServiceException {
StringUtils.requireNotNullOrEmpty(nickname, "Nickname must not be null or blank.");
final DomainBareJid mucService = room.asDomainBareJid(); final DomainBareJid mucService = room.asDomainBareJid();
if (!KNOWN_MUC_SERVICES.containsKey(mucService)) { if (!KNOWN_MUC_SERVICES.containsKey(mucService)) {
if (multiUserChatManager.providesMucService(mucService)) { if (multiUserChatManager.providesMucService(mucService)) {