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

View File

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