Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>tags/v22.0.0beta1
@@ -417,7 +417,7 @@ class EncryptAll { | |||
$recipientDisplayName = $recipient->getDisplayName(); | |||
$to = $recipient->getEMailAddress(); | |||
if ($to === '') { | |||
if ($to === '' || $to === null) { | |||
$noMail[] = $uid; | |||
continue; | |||
} |