From 4a229485899f035245bac62c8db1152bcb244046 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 1 Jun 2023 21:26:47 +0200 Subject: [PATCH] BUGFIX: NodeInfoHelper::isAutoCreated handle nodeName == null --- Classes/Fusion/Helper/NodeInfoHelper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/Fusion/Helper/NodeInfoHelper.php b/Classes/Fusion/Helper/NodeInfoHelper.php index 1122c27f7d..1a9ef08733 100644 --- a/Classes/Fusion/Helper/NodeInfoHelper.php +++ b/Classes/Fusion/Helper/NodeInfoHelper.php @@ -249,6 +249,9 @@ protected function getBasicNodeInformation(Node $node): array public static function isAutoCreated(Node $node, ContentSubgraphInterface $subgraph): bool { + if (!$node->nodeName) { + return false; + } $parent = $subgraph->findParentNode($node->nodeAggregateId); if ($parent) { if (array_key_exists($node->nodeName->value, $parent->nodeType->getAutoCreatedChildNodes())) {