Skip to content

Commit

Permalink
Pass int to Umbraco.Content instead of int? given we know _contentId …
Browse files Browse the repository at this point in the history
…has value.
  • Loading branch information
nzdev committed Jan 17, 2021
1 parent e8b8723 commit 5c5d0da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected virtual void ConfigurePublishedContentRequest(PublishedRequest request
{
if (_contentId.HasValue)
{
var content = Umbraco.Content(_contentId);
var content = Umbraco.Content(_contentId.Value);
if (content == null)
{
throw new InvalidOperationException("Could not resolve content with id " + _contentId);
Expand Down

0 comments on commit 5c5d0da

Please sign in to comment.