diff --git a/src/Models/Media.php b/src/Models/Media.php index f5d3bc5..1da1d22 100644 --- a/src/Models/Media.php +++ b/src/Models/Media.php @@ -288,6 +288,12 @@ public function executeConversion( if (str_contains($conversion, '.')) { $parent = $this->getOrExecuteConversion(str($conversion)->beforeLast('.')); + /** + * Parent conversion can't be done, so children can't be executed either. + */ + if (! $parent) { + return null; + } } else { $parent = null; }