diff --git a/CertReports.Syncfusion/Services/Implementations/AnagraficaSectionRenderer.cs b/CertReports.Syncfusion/Services/Implementations/AnagraficaSectionRenderer.cs index bf964a8..eb3d6d4 100644 --- a/CertReports.Syncfusion/Services/Implementations/AnagraficaSectionRenderer.cs +++ b/CertReports.Syncfusion/Services/Implementations/AnagraficaSectionRenderer.cs @@ -92,7 +92,7 @@ public class AnagraficaSectionRenderer : IPdfSectionRenderer const float bidW = 70f; const float askW = 70f; - string tipologia = showNatixis ? info.Nome : info.Categoria; + string tipologia = showNatixis && !string.IsNullOrEmpty(info.Nome) ? info.Nome : info.Categoria; bool showTip = !string.IsNullOrEmpty(tipologia); bool showData = !string.IsNullOrEmpty(info.LastPriceDate); bool showBidAsk = !string.IsNullOrEmpty(info.Bid) && !string.IsNullOrEmpty(info.Ask); diff --git a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs index 5f417a7..07c9231 100644 --- a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs +++ b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs @@ -83,7 +83,7 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer // Solo box Tipologia, niente Data/Bid/Ask const float boxH = 28f; - string tipologia = showNatixis ? info.Nome : info.Categoria; + string tipologia = showNatixis && !string.IsNullOrEmpty(info.Nome) ? info.Nome : info.Categoria; if (!string.IsNullOrEmpty(tipologia)) { DrawInfoBox(g, 0, y, w, boxH,