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) {