Merge pull request #3023 from ingmargoudt/inspecting_npe

Inspecting npe
This commit is contained in:
ingmargoudt 2017-03-25 09:45:52 +01:00 committed by GitHub
commit 8da4f72f8d

View file

@ -222,6 +222,8 @@ public class Session {
);
}
}
}
Optional<User> selectUser = UserManager.instance.createUser(userName, host, authorizedUser);
boolean reconnect = false;
if (!selectUser.isPresent()) { // user already exists
@ -259,8 +261,8 @@ public class Session {
ChatManager.instance.joinChat(room.get().getChatId(), userId);
ChatManager.instance.sendReconnectMessage(userId);
}
}
}
return null;
}