Fixed that from may is null
This commit is contained in:
parent
9aaa2f630c
commit
2ab10f77d4
|
@ -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
|
||||||
|
|
|
@ -4,7 +4,7 @@ import java.time.Instant
|
||||||
import java.time.ZoneId
|
import java.time.ZoneId
|
||||||
|
|
||||||
class MailWithInvoice(
|
class MailWithInvoice(
|
||||||
val sender: String,
|
val sender: String?,
|
||||||
val subject: String,
|
val subject: String,
|
||||||
val sent: Instant?,
|
val sent: Instant?,
|
||||||
val received: Instant,
|
val received: Instant,
|
||||||
|
|
Loading…
Reference in New Issue