boons605 / MotoGymkhanaRaceTiming

3 stars 2 forks source link

Calling State endpoint before posting config causes nullrefrence exception #45

Closed boons605 closed 3 years ago

boons605 commented 3 years ago

When testing to figure out the controller routing by using the simplest GET request, encountered a null reference exceptions. Makes sense to not call that endpoint before starting the whole thing, but then again: It should give a nice 500 status code or something.

https://github.com/boons605/MotoGymkhanaRaceTiming/blob/3f5247d2a2f7f946e91f239afcf154a75ad063e1/CentralUnit/RaceManagement/RaceManager.cs#L165