Skip to content

Commit

Permalink
Merge pull request #12 from eu-digital-green-certificates/feat/refact…
Browse files Browse the repository at this point in the history
…oring

fix null pointer on birth day
  • Loading branch information
epicsoft-llc authored Sep 17, 2021
2 parents b5604d0 + 4607283 commit c0c1010
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 c0c1010

Please sign in to comment.