Problem/Motivation

In certain circumstances the following error can be logged:

Notice: Trying to access array offset on value of type null in dynamic_breadcrumb_system_breadcrumb_alter() (line 50 of dynamic_breadcrumb.module)

I'm not 100% certain what scenario causes this, but it seems like a simple issue to work around.

Steps to reproduce

TBD

Proposed resolution

Verify that $link_entity_config['checkbox'] exists before using it.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

CommentFileSizeAuthor
#2 dynamic_breadcrumb-n3321305-2.patch792 bytesdamienmckenna

Comments

DamienMcKenna created an issue. See original summary.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new792 bytes

This verifies the variable exists and has a non-empty value rather than just verifying it has a non-empty value.

akram zairig’s picture

Hello Damien Mckenna , thank you for this patch
I'll include it in the next release.

akram zairig’s picture

Status: Needs review » Fixed

Issue solved by this patch https://www.drupal.org/files/issues/2022-11-14/dynamic_breadcrumb-n33213...
I'll close this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.