NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Jochanan
Posts: 79
Joined: 11 May 2018, 09:12

NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Postby Jochanan » 30 Aug 2019, 12:02

Hi Lapo,
we got this exception on client during server restart

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
  at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost (System.Boolean fireEvent, System.String reason) [0x0001a] in <9bfe5727c1e148feb52fa1397dabf0b5>:0
  at Sfs2X.Bitswarm.BBox.BBClientV2.OnHttpError (System.String message) [0x00014] in <9bfe5727c1e148feb52fa1397dabf0b5>:0
  at Sfs2X.Bitswarm.BBox.BBClientV2.OnHttpResponse (System.Threading.Tasks.Task`1[TResult] task) [0x001de] in <9bfe5727c1e148feb52fa1397dabf0b5>:0


I see it for the first time. Do you have any idea of the cause or how to fix it on client?
Jochanan
Posts: 79
Joined: 11 May 2018, 09:12

Re: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Postby Jochanan » 30 Aug 2019, 12:35

I have more information.
This exception happens during server is paused due breakpoint on server AND client is trying to connect to the server
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Postby Lapo » 30 Aug 2019, 14:33

Ok. There's not much you can do about that though :)
Lapo
--
gotoAndPlay()
...addicted to flash games
Jochanan
Posts: 79
Joined: 11 May 2018, 09:12

Re: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Postby Jochanan » 30 Aug 2019, 14:52

Lapo wrote:Ok. There's not much you can do about that though :)

I would rather not have NullReference exception thrown. Is it possible to achieve?
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: NRE: Object reference not set to an instance of an object at Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost

Postby Lapo » 30 Aug 2019, 16:42

We can take a look but if you're messing with the server using a debugger, that's a problem.
You will likely get other issues as well.

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 26 guests