racerr-io / racerr

🏎️ racerr.io - Massively Multiplayer Online Racing
http://racerr.io
3 stars 0 forks source link

NotifyPlayerPassedThroughCheckpoint in ServerRaceState throws NullReferenceException #142

Closed RFSurdsman closed 4 years ago

RFSurdsman commented 4 years ago

Sentry has discovered a real, but small problem: https://sentry.io/organizations/racerr/issues/1540543841

Please fix it. I suspect it is being caused by the car being immediately destroyed at the finish line checkpoint in a single player race, so player.CarManager is null. We should probably add a null check for player.CarManager.

Remember to resolve the issue in Sentry when you are done.