Jump to content

Recommended Posts

Posted
Anyway, the reason that you got NPE is probably because somehow the account wasnt inside _loginServerClients

 

Come on nick ,thats not an explanation. If somehow the account was not in loginServerClients then it can happen again. And possibly can be triggered by players. I would come discuss that in your forums, but im not welcome there. There's something bigger behind this im sure. Probably some race condition ? As a programmer you can just go and put :

 

if(client == null)

return;

 

It fixes it sure, but the cause of the npe is not investigated.

Posted

This is fucking ridiculous... i've investigated for no more than 1 min and this is what i see:

 

case AUTH_SUCCESS:

client.setAccount(_user);

lc.getCharactersOnAccount(_user);

client.setState(LoginClientState.AUTHED_LOGIN);

client.setSessionKey(lc.assignSessionKeyToClient(_user, client));

public SessionKey aassignSessionKeyToClient(String account, L2LoginClient client)

{

SessionKey key;

 

key = new SessionKey(Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt(), Rnd.nextInt());

_loginServerClients.put(account, client);

return key;

}

  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...