Skip to content

Commit

Permalink
fix null pointer on birth day
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Schwarz committed Sep 17, 2021
1 parent 9a5e343 commit 4607283
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ private AccessTokenPayload buildAccessToken(
accessTokenConditions.setLang(occurrenceInfo.getLanguage());
accessTokenConditions.setFnt(subjectResponse.getForename());
accessTokenConditions.setGnt(subjectResponse.getLastname());
accessTokenConditions.setDob(subjectResponse.getBirthDate().format(BIRTH_DATE_FORMATTER));
if (subjectResponse.getBirthDate() != null) {
accessTokenConditions.setDob(subjectResponse.getBirthDate().format(BIRTH_DATE_FORMATTER));
}
accessTokenConditions.setCoa(occurrenceInfo.getCountryOfArrival());
accessTokenConditions.setCod(occurrenceInfo.getCountryOfDeparture());
accessTokenConditions.setRoa(occurrenceInfo.getRegionOfArrival());
Expand Down

0 comments on commit 4607283

Please sign in to comment.