Error when trying to send a message to a deleted owner

Created on 25 November 2021, about 2 years ago
Updated 12 February 2024, 12 days ago

When the module tries to send a message to a deleted owner this throws a PHP error:

Error: Call to a member function id() on null in Drupal\message_notify\Plugin\Notifier\Email->deliver() (line 93 of /app/web/modules/contrib/message_notify/src/Plugin/Notifier/Email.php)

It would be good to test if there is an account first before calling $account->id()

Patch to follow.

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Ludo.R Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates : some issue and comment data are missing.

Production build https://api.contrib.social 0.61.6-2-g546bc20