login crash bug

This commit is contained in:
2024-03-09 21:42:56 -06:00
parent 28fa81962d
commit c6c4a128a2
3 changed files with 9 additions and 3 deletions
@@ -373,6 +373,11 @@ public class LoginServerMsgHandler implements NetMsgHandler {
clientConnection);
return;
}
if (DbManager.PlayerCharacterQueries.IS_CHARACTER_NAME_UNIQUE(firstName) == false) {
LoginServerMsgHandler.sendInvalidNameMsg(firstName, lastName, MBServerStatics.INVALIDNAME_FIRSTNAME_UNAVAILABLE,
clientConnection);
return;
}
PlayerCharacter pc = PlayerCharacter.generatePCFromCommitNewCharacterMsg(session.getAccount(), commitNewCharacterMessage, clientConnection);
if (pc == null) {