Error in TaskListBuilder when referenced entities are deleted

Created on 15 April 2025, 25 days ago

Problem/Motivation

When visiting /admin/config/gdpr/tasks, a fatal error occurs if a GDPR Task entity references a deleted user, bundle, or requester.

Error: Call to a member function label() on null in Drupal\gdpr_tasks\TaskListBuilder->buildRow()

Proposed resolution

Add null checks to avoid errors and display fallback labels like “Deleted user”, “Deleted bundle”, or “Unknown” for missing references.

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024