Error: Call to a member function getBundle() on null in Drupal\graphql_compose\Plugin\GraphQLComposeFieldTypeManager->getBundleFields()

Created on 27 June 2024, 6 months ago
Updated 28 June 2024, 6 months ago

Problem/Motivation

If an entity type does not have a graphql_compose class there are is a NULL gqlEntityTypeManager() result.

Steps to reproduce

Install Open Social distribution and enable the entity type "post" (which does not have a "graphql_compose" code available).

Proposed resolution

Add an additional condition to check for NULL types and/or fields

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇬🇷Greece TheodorosPloumis Greece

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