richibrics / ingsw2022-AM10

2 stars 0 forks source link

game_components null parameters check #3

Closed richibrics closed 2 years ago

richibrics commented 2 years ago

Throw NullPointerException if a null parameter was passed to a method in the game_components (add also Exception to JavaDoc and to tests).

ingconti commented 2 years ago

if so, what the app will do at runtime?

richibrics commented 2 years ago

During the debug it may be useful to find errors, during a normal run the exception may result in an error message to the clients and then in the match end.

ingconti commented 2 years ago

Do you plan to send back message to server notifying client has died?