Fix ProfileCvController null warning
This commit is contained in:
@@ -2123,7 +2123,7 @@ public sealed class ProfileCvController : ControllerBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
var contactSection = sections.FirstOrDefault(section => section.Name == "Contact");
|
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.Summary = CondenseSummary(profile.Summary);
|
||||||
profile.Skills = OrderSkills(profile.Skills);
|
profile.Skills = OrderSkills(profile.Skills);
|
||||||
profile.Interests = CleanInterestItems(profile.Interests);
|
profile.Interests = CleanInterestItems(profile.Interests);
|
||||||
|
|||||||
Reference in New Issue
Block a user