We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a91467 commit 3da3024Copy full SHA for 3da3024
1 file changed
Classes/Aspect/CollectDebugInformationAspect.php
@@ -199,7 +199,8 @@ public function addGeneratedThumbnails(JoinPointInterface $joinPoint): void
199
{
200
/** @var AssetInterface $asset */
201
$asset = $joinPoint->getMethodArgument('asset');
202
- if ($asset instanceof Thumbnail) {
+ $thumbnailOrOriginalAsset = $joinPoint->getResult();
203
+ if ($asset && $thumbnailOrOriginalAsset instanceof Thumbnail) {
204
if (!array_key_exists($asset->getResource()->getSha1(), $this->thumbnails)) {
205
$this->thumbnails[$asset->getResource()->getSha1()] = 1;
206
} else {
0 commit comments