Problem/Motivation

In some circumstances the entityTypeManager property is null, which leads to a fatal error when accessing the link.

Proposed resolution

Instead of accessing the entityTypeManager as a property, use the getter method in the ControllerBase, which will populate the entityTypeManager from the container if the property is null.

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

mandclu created an issue. See original summary.

  • mandclu committed b9f9cb46 on 1.0.x
    Issue #3381940 by mandclu: Prevent fatal error on accessing link if...
mandclu’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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