Error when trying to send a message to a deleted owner

Created on 25 November 2021, about 3 years ago
Updated 12 February 2024, 10 months 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 Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024