Fix ProfileCvController null warning

This commit is contained in:
2026-04-11 17:13:25 +02:00
parent 5f2f0a881a
commit cc97a6b6c5
@@ -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);