Nullref bugfix

This commit is contained in:
Rick Falkvinge
2019-01-01 11:27:35 +01:00
parent 4d710d5a8a
commit c945320550
+1 -1
View File
@@ -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";