diff --git a/Classes/Service/AssetIntegrationService.php b/Classes/Service/AssetIntegrationService.php index 33b2ffd..06eae09 100644 --- a/Classes/Service/AssetIntegrationService.php +++ b/Classes/Service/AssetIntegrationService.php @@ -202,7 +202,9 @@ public function beforeNodePublishing(NodeInterface $node, Workspace $targetWorks // Unregister the asset stored in the target node, the assets will be registered again after publishing if ($targetNode && $targetNode->hasProperty($propertyName)) { $targetPropertyValue = $targetNode->getProperty($propertyName); - $this->unregisterUsageInNode($targetNode, $targetPropertyValue, false); + if ($targetPropertyValue) { + $this->unregisterUsageInNode($targetNode, $targetPropertyValue, false); + } } $this->unregisterUsageInNode($node, $propertyValue, false); }