We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db39252 + 82dfd32 commit c4e1671Copy full SHA for c4e1671
Neos.Media/Classes/Domain/Service/ThumbnailService.php
@@ -255,7 +255,15 @@ public function getUriForThumbnail(ImageInterface $thumbnail): string
255
{
256
$resource = $thumbnail->getResource();
257
if ($resource) {
258
- return $this->resourceManager->getPublicPersistentResourceUri($resource);
+ $uri = $this->resourceManager->getPublicPersistentResourceUri($resource);
259
+ if ($uri === false) {
260
+ throw new ThumbnailServiceException(sprintf(
261
+ 'Could not generate URI for resource "%s".',
262
+ $this->persistenceManager->getIdentifierByObject($resource)
263
+ ), 1737558490);
264
+ }
265
+
266
+ return $uri;
267
}
268
269
$staticResource = $thumbnail->getStaticResource();
0 commit comments