Skip to content

Commit

Permalink
Fix for possible null reference exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
floeschau committed Feb 17, 2025
1 parent 67c6a9f commit 91a46a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stars.Services/Translator/DefaultStacTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private IItem CreateStacItemNode(IItem node)
{
if (!link.Uri.IsAbsoluteUri)
continue;
stacItem.Links.Add(new StacLink(link.Uri, link.Relationship, link.Title, link.ContentType.ToString()));
stacItem.Links.Add(new StacLink(link.Uri, link.Relationship, link.Title, link.ContentType?.ToString()));
}
return new StacItemNode(stacItem, node.Uri);
}
Expand Down

0 comments on commit 91a46a1

Please sign in to comment.