You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
After creating a new player I can't edit this player (with default players there is no such problem)
I receive such error "Not found GET /rpg_war_exploded/rest/players/43"
If you have time I would be very grateful if you answer me.
Thanks!
The text was updated successfully, but these errors were encountered:
The issue is still present. I found a bug in PlayerValidationService.java
line 101. If id value more then players in DB it throws an Exception. For example i have 38 players in my DB and i can't delete player whos id is 39 or 40 etc.
public void validateId(Long id) {
if (id <= 0) {
throw new InvalidIdException();
} else if (id > playerRepository.count() || !playerRepository.findById(id).isPresent()) { //here
throw new NoSuchPlayerException();
}
`}`
Hi!
After creating a new player I can't edit this player (with default players there is no such problem)
I receive such error "Not found GET /rpg_war_exploded/rest/players/43"
If you have time I would be very grateful if you answer me.
Thanks!
The text was updated successfully, but these errors were encountered: