Skip to content

Commit

Permalink
Merge pull request #120 from indykoning/patch-1
Browse files Browse the repository at this point in the history
Fix call getValue() on null
  • Loading branch information
butschster authored Feb 22, 2024
2 parents 3c4f3cc + 1f125e1 commit d3f6df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/Smtp/Application/Mail/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function parse(string $body, array $allRecipients = []): Message

return new Message(
$this->storage->bucket('attachments'),
$message->getHeader('Message - Id')->getValue(),
$message->getHeader('Message - Id')?->getValue(),
$body, $from, $recipients, $ccs, $subject,
$html, $text, $replyTo, $allRecipients, $attachments
);
Expand Down

0 comments on commit d3f6df7

Please sign in to comment.