diff --git a/src/EventListener/StorageListener.php b/src/EventListener/StorageListener.php index 8f690d9..17793cc 100644 --- a/src/EventListener/StorageListener.php +++ b/src/EventListener/StorageListener.php @@ -188,6 +188,11 @@ public function preSave(StorageEvent $event) } $contentType = $this->boltConfig->get('contenttypes/' . $event->getContentType()); + + if ($contentType === null) { + return; + } + $translatableFields = $this->getTranslatableFields($contentType['fields']); /** @var Content $record */ $record = $event->getContent();