Skip to content

Commit

Permalink
Nullsafe personhenting, for henting av neste oppgaver i kø. Feilet fo…
Browse files Browse the repository at this point in the history
…r punsj der aktorId ikke er påkrevd.
  • Loading branch information
mbolstad committed Nov 28, 2024
1 parent b403109 commit deaf7c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class OppgaveKoTjeneste(
continue
}

val person = pdlService.person(oppgave.hentVerdi("aktorId")!!).person!!
val person = oppgave.hentVerdi("aktorId")?.let { pdlService.person(it).person }

oppgaver.add(GenerellOppgaveV3Dto(oppgave, person))
if (oppgaver.size >= ønsketAntallSaker) {
Expand Down

0 comments on commit deaf7c2

Please sign in to comment.