diff --git a/src/CoreShop/Component/Pimcore/DataObject/AbstractSluggableLinkGenerator.php b/src/CoreShop/Component/Pimcore/DataObject/AbstractSluggableLinkGenerator.php index 191270f908..2d0102b2d3 100644 --- a/src/CoreShop/Component/Pimcore/DataObject/AbstractSluggableLinkGenerator.php +++ b/src/CoreShop/Component/Pimcore/DataObject/AbstractSluggableLinkGenerator.php @@ -20,6 +20,10 @@ abstract class AbstractSluggableLinkGenerator implements LinkGeneratorInterface { protected function slugify($string): string { + if ($string === null) { + return ''; + } + return strtolower( trim( preg_replace('~[^0-9a-z]+~i', '-', html_entity_decode(