Skip to content
Snippets Groups Projects

Issue #3270514: Call to a member function getDataDefinition() on bool

Open Bayo Fodeke requested to merge issue/facets-3270514:8.x-1.x into 2.0.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -128,7 +128,7 @@ class ListItemProcessor extends ProcessorPluginBase implements BuildProcessorInt
}
// Fields defined in code don't can't be loaded from storage so check the
// fields property path and see if its part of the base fields.
elseif ($field->getDataDefinition() instanceof FieldItemDataDefinition) {
elseif ($field && $field->getDataDefinition() instanceof FieldItemDataDefinition) {
$fieldDefinition = $field->getDataDefinition()
->getFieldDefinition();
$referenced_entity_name = sprintf(
Loading