Error: Call to a member function id() on null

Created on 20 February 2025, about 1 month ago

Problem/Motivation

While sitebuilding in Layout Builder, a colleagues stumbled upon the following error:
Error: Call to a member function id() on null in Drupal\custom_field\Plugin\DataType\CustomFieldEntityReference->setValue() (line 53 of modules/contrib/custom_field/src/Plugin/DataType/CustomFieldEntityReference.php).

While the root cause is probably due to config changes and conflicts with dummy content, it revealed a small problem in the code.

Steps to reproduce

No idea.

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium andreasderijcke Antwerpen / Gent

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024