diff --git a/src/Core/Grid/Data/Factory/AbstractCategoryDataFactory.php b/src/Core/Grid/Data/Factory/AbstractCategoryDataFactory.php index 92ffa1aca8abb..af5b2a41f45e4 100644 --- a/src/Core/Grid/Data/Factory/AbstractCategoryDataFactory.php +++ b/src/Core/Grid/Data/Factory/AbstractCategoryDataFactory.php @@ -74,7 +74,9 @@ public function getData(SearchCriteriaInterface $searchCriteria) protected function modifyRecords(array $records): array { foreach ($records as $key => $record) { - $records[$key]['description'] = mb_substr(strip_tags(stripslashes($record['description'])), 0, self::DESCRIPTION_MAX_LENGTH); + if ($record['description'] !== null) { + $records[$key]['description'] = mb_substr(strip_tags(stripslashes($record['description'])), 0, self::DESCRIPTION_MAX_LENGTH); + } } return $records;