Fixed that subject may is null
This commit is contained in:
parent
2ab10f77d4
commit
0c3f069f1f
|
@ -110,7 +110,7 @@ class MailReader(
|
||||||
|
|
||||||
if (attachmentsWithEInvoice.isNotEmpty()) {
|
if (attachmentsWithEInvoice.isNotEmpty()) {
|
||||||
return MailWithInvoice(
|
return MailWithInvoice(
|
||||||
message.from?.joinToString(), message.subject,
|
message.from?.joinToString(), message.subject ?: "",
|
||||||
message.sentDate?.let { map(it) }, map(message.receivedDate), message.messageNumber,
|
message.sentDate?.let { map(it) }, map(message.receivedDate), message.messageNumber,
|
||||||
getPlainTextBody(parts), getHtmlBody(parts),
|
getPlainTextBody(parts), getHtmlBody(parts),
|
||||||
attachmentsWithEInvoice
|
attachmentsWithEInvoice
|
||||||
|
|
Loading…
Reference in New Issue