Page 1 of 1

NullPointerException during disconnect

Posted: 08 May 2020, 13:40
by Jochanan
Hi, ocationally, we are getting null pointer exception as a result of calling Sfs.Disconnect();

Code: Select all

Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost (System.Boolean fireEvent, System.String reason) (at <00000000000000000000000000000000>:0)
Sfs2X.Bitswarm.BitSwarmClient.Disconnect (System.String reason) (at <00000000000000000000000000000000>:0)
Sfs2X.SmartFox.HandleClientDisconnection (System.String reason, System.Boolean triggerEvent) (at <00000000000000000000000000000000>:0)


Do you have any idea, what might be the cause and how to prevent it?

Re: NullPointerException during disconnect

Posted: 08 May 2020, 14:41
by Bax
Very hard to say what is going on. Are you using the release or debug API DLL? If the release one, try with the debug one, in case we get some other, more meaningful information. Thanks.

Re: NullPointerException during disconnect

Posted: 10 May 2020, 19:42
by Jochanan
unfortunatelly, I cannot use a debug one on production enviroment - where someone got this exception

Re: NullPointerException during disconnect

Posted: 11 May 2020, 07:35
by Bax
Is there a specific reason why you can't do that?
From our point of view there's no difference (for example debug API aren't slower), except you should get more readable error messages.