From 7dfcfd559b79633c52eebb85a7dcd110b9c59906 Mon Sep 17 00:00:00 2001 From: Falkvinge Date: Mon, 30 Oct 2017 12:25:08 +0100 Subject: [PATCH] Fix for nullref --- Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs index 2eb77ed3..a73e5390 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs @@ -80,6 +80,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers AddDocuments(report); } + initialReport = reports.Last(); this.InitialReportId = initialReport.Identity; this.DropReports.SelectedValue = this.InitialReportId.ToString(CultureInfo.InvariantCulture); }