Harden EncryptAll check for empty email

Reported by psalm
For #25641

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2021-02-15 22:28:28 +01:00
parent d6e34b5045
commit 918af40f05
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ class EncryptAll {
$recipientDisplayName = $recipient->getDisplayName();
$to = $recipient->getEMailAddress();
if ($to === '') {
if ($to === '' || $to === null) {
$noMail[] = $uid;
continue;
}