Skip to content

Commit

Permalink
Fix null error when BodyAspect is not populated (#3230)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanmarcussen authored and sebastienros committed Feb 27, 2019
1 parent 448befd commit eb39bbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task PopulateAsync(FeedContext context)

feedItem.Element.SetElementValue("title", contentItem.DisplayText);
feedItem.Element.Add(link);
feedItem.Element.SetElementValue("description", bodyAspect.Body.ToString());
feedItem.Element.SetElementValue("description", bodyAspect.Body?.ToString());

if (contentItem.PublishedUtc != null)
{
Expand Down

0 comments on commit eb39bbd

Please sign in to comment.