Skip to content

Commit a56b872

Browse files
Tozzi, Biagio Placido (Bip Group)Tozzi, Biagio Placido (Bip Group)
authored andcommitted
1 parent eb132e0 commit a56b872

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/app/tozzi/core/PECHandler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public static PEC loadPEC(Mail originalMessage, Mail envelope, DataSource postaC
6767
pec.setDatiCert(datiCert);
6868
pec.setEnvelope(envelope);
6969
pec.setOriginalMessage(originalMessage);
70-
pec.setCertificateData(loadCertificateData(datiCert.getInputStream()));
70+
if (datiCert != null)
71+
pec.setCertificateData(loadCertificateData(datiCert.getInputStream()));
7172
pec.setTransportHeaderValue(MimeMessageUtils.getHeader(mimeMessage, PECConstants.X_TRASPORTO));
7273
pec.setReceiptHeaderValue(MimeMessageUtils.getHeader(mimeMessage, PECConstants.X_RICEVUTA));
7374
pec.setReceiptTypeHeaderValue(MimeMessageUtils.getHeader(mimeMessage, PECConstants.X_TIPO_RICEVUTA));

0 commit comments

Comments
 (0)