diff --git a/Classes/Database/RteImagesDbHook.php b/Classes/Database/RteImagesDbHook.php index ea01e33..7fc7ad6 100644 --- a/Classes/Database/RteImagesDbHook.php +++ b/Classes/Database/RteImagesDbHook.php @@ -182,8 +182,12 @@ protected function getProcessedFile(array $attribArray): string $siteUrl = GeneralUtility::getIndpEnv('TYPO3_SITE_URL'); - $originalImageFile = $resourceFactory - ->getFileObject((int)$attribArray['data-htmlarea-file-uid']); + try { + $originalImageFile = $resourceFactory + ->getFileObject((int)$attribArray['data-htmlarea-file-uid']); + } catch (\Exception $e) { + return ''; + } if ($originalImageFile instanceof File) { // Magic image case: get a processed file with the requested configuration