From 24c121347a402e26bafb6366ff7854f488d1b8b5 Mon Sep 17 00:00:00 2001 From: Glandos Date: Wed, 2 Nov 2022 21:35:54 +0100 Subject: Revert 0e49b40 Signed-off-by: Glandos --- lib/private/Preview/Generator.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/private/Preview') diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php index f5fb46f2c49..a0b955ae2b7 100644 --- a/lib/private/Preview/Generator.php +++ b/lib/private/Preview/Generator.php @@ -208,9 +208,6 @@ class Generator { if ($maxPreviewImage === null) { $maxPreviewImage = $this->helper->getImage($maxPreview); } - if ($maxPreviewImage === null) { - throw new NotFoundException(); - } $preview = $this->generatePreview($previewFolder, $maxPreviewImage, $width, $height, $crop, $maxWidth, $maxHeight, $previewVersion); // New file, augment our array -- cgit v1.2.3