Skip to content

Commit 1ef57f8

Browse files
committed
This resolves a general null reference issue. If folks have used customer _BlogItems/_BlogItemsSummary it will require the same update.
1 parent 1ea3622 commit 1ef57f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/DasBlog.Web.UI/Views/Shared/_BlogItems.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@model ListPostsViewModel
22

33

4-
@if (Model.Posts.Count > 0)
4+
@if (Model?.Posts?.Count > 0)
55
{
66
foreach (var post in Model.Posts)
77
{

source/DasBlog.Web.UI/Views/Shared/_BlogItemsSummary.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@model ListPostsViewModel
22

33

4-
@if (Model.Posts.Count > 0)
4+
@if (Model?.Posts?.Count > 0)
55
{
66
int order = 0;
77

0 commit comments

Comments
 (0)