Call to a member function getGroupType() on null

Created on 16 August 2021, over 3 years ago
Updated 19 December 2023, about 1 year ago

Haven't found a way to reproduce this, but in watchdog we sometimes find this exception thrown in Drupal\entitygroupfield\Plugin\Field\FieldWidget\EntityGroupFieldWidgetBase::addMoreSubmit line 865.

Looking at the code, it is generally recommended checking the result of a load operation on storage, so I'm going to provide a safety enhancement in an MR to avoid this exception regardless how it is caused.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024