mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Merge pull request #3023 from ingmargoudt/inspecting_npe
Inspecting npe
This commit is contained in:
commit
8da4f72f8d
1 changed files with 36 additions and 34 deletions
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue