summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview
diff options
context:
space:
mode:
authorGlandos <bugs-github@antipoul.fr>2022-11-02 21:35:54 +0100
committerSimon L <szaimen@e.mail.de>2023-04-17 16:29:13 +0200
commit24c121347a402e26bafb6366ff7854f488d1b8b5 (patch)
tree5769314a121addaf7f44e30975829c3e5de16a80 /lib/private/Preview
parent06a7e903830979556e6b582df0c5be648f465da1 (diff)
downloadnextcloud-server-24c121347a402e26bafb6366ff7854f488d1b8b5.tar.gz
nextcloud-server-24c121347a402e26bafb6366ff7854f488d1b8b5.zip
Revert 0e49b40
Signed-off-by: Glandos <bugs-github@antipoul.fr>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r--lib/private/Preview/Generator.php3
1 files changed, 0 insertions, 3 deletions
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