mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 03:13:49 +00:00
fixed NPE for the case of importing a competitor that does not have a valid nationality set
Change-Id: Ic28fe7ad318e381341975d2c9fd6569b8adfccf6
This commit is contained in:
1 parent
de7baff50f
commit
b03b390d75
1 file changed
+1
-1
+1
-1
@@ -167,7 +167,7 @@ public class CompetitorImporter extends AbstractManage2SailProvider implements C
|
||||
}
|
||||
PersonDTO person = new PersonDTO(
|
||||
name, /* dateOfBirth */ null, /* description */ xrrPerson.getGender()==null?null:xrrPerson.getGender().name(),
|
||||
nationality.getCountryCode().getThreeLetterIOCCode());
|
||||
nationality==null?null:nationality.getCountryCode().getThreeLetterIOCCode());
|
||||
return person;
|
||||
}).collect(Collectors.toList());
|
||||
final CompetitorDescriptor competitorDescriptor = new CompetitorDescriptor(
|
||||
|
||||
Reference in new issue
Block a user