Call to a member function label() on null in Drupal\entity_browser_block\Plugin\Block\EntityBrowserBlock::processTable()

Created on 27 October 2020, over 4 years ago
Updated 14 January 2025, 3 months ago

Steps to reproduce

  • Create an custom inline block type
  • Add some blocks
  • Place the block in a layout builder region on a node with entity browser block
  • Delete the custom inline block content source
  • The entity browser block table will get a null entity and one is left with a broken block

The website encountered an unexpected error. Please try again later.
Error: Call to a member function label() on null in Drupal\entity_browser_block\Plugin\Block\EntityBrowserBlock::processTable() (line 173 of modules/contrib/entity_browser_block/src/Plugin/Block/EntityBrowserBlock.php).
Drupal\entity_browser_block\Plugin\Block\EntityBrowserBlock::processTable(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 1010)

This patch makes the entity browser block usable again.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bernardm28 Tennessee

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

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