From cc97a6b6c555a070c6a17608cdcdda6b869d5b23 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Sat, 11 Apr 2026 17:13:25 +0200 Subject: [PATCH] Fix ProfileCvController null warning --- JobTrackerApi/Controllers/ProfileCvController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);