From 98cf99e4b02fb31271d91307c9cea89fa576512f Mon Sep 17 00:00:00 2001 From: jvyden Date: Thu, 28 Jul 2022 16:17:09 -0400 Subject: [PATCH] Fix compiler warning --- ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml.cs index 20f5cb4f..f4c73ff4 100644 --- a/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml.cs +++ b/ProjectLighthouse.Servers.Website/Pages/ReportPage.cshtml.cs @@ -13,7 +13,7 @@ public class ReportPage : BaseLayout public ReportPage(Database database) : base(database) {} - public GriefReport Report; + public GriefReport Report = null!; // Report is not used if it's null in OnGet public async Task OnGet([FromRoute] int reportId) {