diff --git a/JobTrackerApi/Controllers/ProfileCvController.cs b/JobTrackerApi/Controllers/ProfileCvController.cs index ecc1bd6..81d7c72 100644 --- a/JobTrackerApi/Controllers/ProfileCvController.cs +++ b/JobTrackerApi/Controllers/ProfileCvController.cs @@ -2123,7 +2123,7 @@ public sealed class ProfileCvController : ControllerBase } var contactSection = sections.FirstOrDefault(section => section.Name == "Contact"); - profile.Contact.Location = PreferDetectedLocation(contactSection.Content ?? text, profile.Contact.Location, profile.Contact.FullName); + profile.Contact.Location = PreferDetectedLocation(contactSection?.Content ?? text, profile.Contact.Location, profile.Contact.FullName); profile.Summary = CondenseSummary(profile.Summary); profile.Skills = OrderSkills(profile.Skills); profile.Interests = CleanInterestItems(profile.Interests);