Skip to content

Commit

Permalink
Fix metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Giallonardo committed Nov 11, 2022
1 parent 82a3406 commit 25daee3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using CIE.AspNetCore.Authentication.Helpers;
using CIE.AspNetCore.Authentication.Saml.SP;
using System.Collections.Generic;
using System.Xml;

namespace CIE.AspNetCore.Authentication.Models.ServiceProviders
{
Expand Down Expand Up @@ -61,7 +59,7 @@ public Saml.SP.ContactType GetContactForXml(ServiceProvider sp)
elements.Add(ItemsChoiceType7.FiscalCode);
values.Add(this.FiscalCode);
}
if (NACE2Codes.Length > 0)
if (NACE2Codes is not null && NACE2Codes.Length > 0)
foreach (var code in NACE2Codes)
{
elements.Add(ItemsChoiceType7.NACE2Code);
Expand Down

0 comments on commit 25daee3

Please sign in to comment.