Skip to content

Commit

Permalink
AKR (Backend): OPHAKRKEH-522 fixed wrong NPE-condition [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
markpilkku committed Nov 16, 2023
1 parent 92d54c3 commit a2d9f23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private List<PublicTownDTO> getDistinctTowns(
.map(translator -> {
final PersonalData personalData = personalDatas.get(translator.getOnrId());

if (personalData != null && !StringUtils.hasText(personalData.getTown())) {
if (personalData == null || !StringUtils.hasText(personalData.getTown())) {
return null;
}
final String country = getNonFinlandCountryCode(personalData);
Expand Down

0 comments on commit a2d9f23

Please sign in to comment.