diff --git a/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs b/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs index adde1b3a6..30f24fa19 100644 --- a/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs +++ b/NFe.Danfe.QuestPdf/ImpressaoNfce/DanfeNfceDocument.cs @@ -278,7 +278,7 @@ private void Rodape(IContainer container) r.RelativeItem().AlignRight().Column(c => { - c.Item().Text($"R$ {_nfe.infNFe.total.ICMSTot.vTotTrib:N2}").FontSize(_tamanhoFontePadrao); + c.Item().Text($"R$ {_nfe.infNFe.total.ICMSTot.vTotTrib ?? 0:N2}").FontSize(_tamanhoFontePadrao); }); }); diff --git a/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj b/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj index 358752be6..a45de129d 100644 --- a/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj +++ b/NFe.Danfe.QuestPdf/NFe.Danfe.QuestPdf.csproj @@ -28,7 +28,7 @@ - +