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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..