From c9453205503387815e5a0ee2c523848a52e33576 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 1 Jan 2019 11:27:35 +0100 Subject: [PATCH] Nullref bugfix --- Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs index 7b2294f6..c519f061 100644 --- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs +++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs @@ -191,7 +191,7 @@ namespace Swarmops.Frontend.Pages.Ledgers string iconDisabledClass = string.Empty; string iconIsUploadClass = string.Empty; - if (item.DependsOn.Length > 0) + if (!string.IsNullOrEmpty(item.DependsOn)) { // add as disabled itemDisabledClass = " action-list-item-disabled";