Unity MultiPlayer course - NullReferenceException

i have a error ,

details:
when i start game in the editor all fine, and when i stop the game it give me null exception.
NullReferenceException: Object reference not set to an instance of an object

when i double click it.

is this error happened only in the editor or in the game build too?
is this error meaning something?
is this error can cause trouble?

how to fix it?

Hi there,

Which lecture are you one? This may get fixed later in the course.

now i end section “Gameplay Additions”
this problem didn’t solve,
now i have 1 new bug,

details:
I host in editor and then leave game(it doesn’t matter if i connect with build).
Then, i start host again, and i have this exception:

the problem in line 127 this image

i think it is about the list,

when I host again, i have weird bug,

Hi eliran,

Can you let me know the lecture that this is on please.
The original issue you had we do fix later but it can reoccur if you stop the game in the editor whilst in the game scene, As when we build the game we exit back to the main scene this is not an issue.

The second issue i am not sure on so i would double check your code against that in the resources and when you let me know the lecture we can take a closer look.

Thanks in advance

Privacy & Terms