Skip to content

Commit

Permalink
NP ordre-endepunkt fix II
Browse files Browse the repository at this point in the history
  • Loading branch information
krharum committed Jan 11, 2024
1 parent 826db08 commit 79bc92d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public void mapAtoB(PdlPersonBolk.PersonBolk person, PensjonPersonRequest pensjo

if (person.getPerson().getUtflyttingFraNorge().stream()
.noneMatch(utflytting -> person.getPerson().getInnflyttingTilNorge().stream()
.filter(innflytting -> nonNull(innflytting.getFolkeregistermetadata()))
.filter(innflytting -> nonNull(innflytting.getFolkeregistermetadata()) &&
nonNull(innflytting.getFolkeregistermetadata().getGyldighetstidspunkt()))
.anyMatch(innflytting -> innflytting.getFolkeregistermetadata().getGyldighetstidspunkt()
.isAfter(utflytting.getUtflyttingsdato())))) {

Expand Down

0 comments on commit 79bc92d

Please sign in to comment.