Problem/Motivation

field_display_label_preprocess_field assumes that $entity is not null and fails when calling getFieldDefinition()

Steps to reproduce

Duplicate the People view (/admin/people)
Add a Global->Custom Text field to the view

error is thrown because the custom text aka "nothing" field has no $entity

Proposed resolution

check if $entity is not null and return early

patch attached

Comments

realgt created an issue. See original summary.

neslee canil pinto’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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