Problem/Motivation

Seeing this in kernel tests on 11.5 with Group 2. Not 100% sure that this isn't due to something in my project, but I think it does not hurt to be defensive about this and filter out empty values as there might be an empty target_id in the list, then it attempts to load [NULL].

TypeError: Drupal\Core\Entity\EntityStorageBase::buildNotFoundCacheId(): Argument #1 ($id) must be of type string|int, null given

Steps to reproduce

Proposed resolution

Run the array_column() through an array_filter()

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork group-3637202

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

berdir created an issue. See original summary.

berdir’s picture

Status: Active » Needs review
berdir’s picture

This turned out to be an inconsistent table mapping which failed to properly load the values, but it might still be beneficial to be defensive about this.