Skip to content

Commit 07d0460

Browse files
committed
fix null error
/home/kushal/src/dotnet/MyBlog/src/MyBlog.Web/Components/Pages/PostDetail.razor(130,32): error CS8604: Possible null reference argument for parameter 'value' in 'void Dictionary<string, object>.Add(string key, object value)'.
1 parent 60c5277 commit 07d0460

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/llm/dump.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
===============================================================================
22
PROJECT EXPORT
3-
Generated: Wed Jan 21 12:48:41 PM EST 2026
3+
Generated: Fri Jan 23 09:35:11 AM EST 2026
44
Project Path: /home/kushal/src/dotnet/MyBlog
55
===============================================================================
66

@@ -7793,7 +7793,7 @@ a:hover {
77937793

77947794

77957795
===============================================================================
7796-
EXPORT COMPLETED: Wed Jan 21 12:48:42 PM EST 2026
7796+
EXPORT COMPLETED: Fri Jan 23 09:35:12 AM EST 2026
77977797
Total Files Found: 74
77987798
Files Exported: 74
77997799
Files Skipped: 0 (binary or large files)

src/MyBlog.Web/Components/Pages/PostDetail.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,23 +113,23 @@ else
113113
{
114114
if (_post is null) return "";
115115

116-
var schema = new Dictionary<string, object>
116+
var schema = new Dictionary<string, object?>
117117
{
118118
{ "@context", "https://schema.org" },
119119
{ "@type", "BlogPosting" },
120120
{ "headline", _post.Title },
121121
{ "description", _post.Summary },
122-
{ "author", new Dictionary<string, object> {
122+
{ "author", new Dictionary<string, object?> {
123123
{ "@type", "Person" },
124124
{ "name", _post.AuthorDisplayName }
125125
}},
126-
{ "publisher", new Dictionary<string, object> {
126+
{ "publisher", new Dictionary<string, object?> {
127127
{ "@type", "Organization" },
128128
{ "name", Configuration["Application:Title"] ?? "MyBlog" }
129129
}},
130130
{ "datePublished", _post.PublishedAtUtc?.ToString("O") },
131131
{ "dateModified", _post.UpdatedAtUtc.ToString("O") },
132-
{ "mainEntityOfPage", new Dictionary<string, object> {
132+
{ "mainEntityOfPage", new Dictionary<string, object?> {
133133
{ "@type", "WebPage" },
134134
{ "@id", _currentUrl }
135135
}}

0 commit comments

Comments
 (0)