Develop footer #39

Merged
schrom01 merged 3 commits from develop_footer into main 2022-05-12 23:26:54 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 280d2ebda3 - Show all commits

View File

@ -33,7 +33,7 @@ public class Player extends Person implements Participant{
String[] date = dateOfBirth.split("\\."); String[] date = dateOfBirth.split("\\.");
try{ try{
this.dateOfBirth = LocalDate.of(Integer.valueOf(date[2]), Integer.valueOf(date[1]), Integer.valueOf(date[0])); this.dateOfBirth = LocalDate.of(Integer.valueOf(date[2]), Integer.valueOf(date[1]), Integer.valueOf(date[0]));
} catch (NumberFormatException e) { } catch (NumberFormatException | IndexOutOfBoundsException e) {
e.printStackTrace(); e.printStackTrace();
throw new InvalidDateException("Date invalid"); throw new InvalidDateException("Date invalid");
} }