Problem/Motivation

Facing this error: Error: Call to a member function getEntityTypeId() on null in Drupal\blocktabs\Plugin\Tab\BlockContentTab->getContent() (line 108 of modules/contrib/blocktabs/src/Plugin/Tab/BlockContentTab.php).
on the layout builder.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork blocktabs-3573029

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

ishani patel created an issue. See original summary.

nickolaj made their first commit to this issue’s fork.

nickolaj’s picture

Status: Active » Needs review

Added a null check after `loadEntityByUuid()` in `BlockContentTab::getContent()` to prevent the fatal error when the referenced block content entity no longer exists.