Skip to content

Commit

Permalink
fix: add null coalescing on EmploymentHistoryMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
SondreJDigdir committed Feb 25, 2025
1 parent 6068bc5 commit 96945fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dan.Plugin.Nav/Mappers/EmploymentHistoryMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public EmploymentHistory Map(NavEmployeeQueryResponse input)
{
return new EmploymentHistory()
{
EmploymentInfo = input.Data.EmploymentInfoResponse.EmploymentInfo
EmploymentInfo = input?.Data?.EmploymentInfoResponse?.EmploymentInfo
};
}
}

0 comments on commit 96945fc

Please sign in to comment.