From 0c3f069f1fd9441b904a82cdbfdf70e898ec8416 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 21 Nov 2024 21:24:20 +0100 Subject: [PATCH] Fixed that subject may is null --- .../src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt index 66d5d41..8f44d55 100644 --- a/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt +++ b/e-invoicing-domain/src/main/kotlin/net/codinux/invoicing/mail/MailReader.kt @@ -110,7 +110,7 @@ class MailReader( if (attachmentsWithEInvoice.isNotEmpty()) { return MailWithInvoice( - message.from?.joinToString(), message.subject, + message.from?.joinToString(), message.subject ?: "", message.sentDate?.let { map(it) }, map(message.receivedDate), message.messageNumber, getPlainTextBody(parts), getHtmlBody(parts), attachmentsWithEInvoice