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:
Axel Uhl committed 2016-12-16 08:41:08 +01:00
1 parent de7baff50f
commit b03b390d75
1 file changed
+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(