Call to a member function getValue() on null in Drupal\announcements\AnnouncementListBuilder->buildRow()

Created on 7 February 2024, 11 months ago
Updated 13 August 2024, 4 months ago

Problem/Motivation

Using an announcement type with no conditions breaks the announcement list page with the error Call to a member function getValue() on null in Drupal\announcements\AnnouncementListBuilder->buildRow()

Steps to reproduce

  1. Install the announcements module.
  2. Create an announcement of type Default.
  3. Visit /announcements.

Proposed resolution

Add null checks when attempting to load the visibility rules in AnnouncementListBuilder.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jamosmk7

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024