Error: Call to a member function getBackgroundName() on null
File "/src/Service/FileTypeService.php", line 78, in App\Service\FileTypeService::getType
if ($obj->getBackgroundName() !== null && self::$uploaderHelper->asset($obj, $name)) {
File "/src/Twig/FileTypeExtension.php", line 25, in App\Twig\FileTypeExtension::getType
return $this->fileType->getType($obj, $name);
File "/src/Controller/UserController.php", line 54, in App\Controller\UserController::editSwipeUp
return $this->render('swipe/edit.html.twig', [
File "/public/index.php", line 5
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
...
(24 additional frame(s) were not displayed)
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Call to a member function getBackgroundName() on null").
File "/templates/_components/create/_swipes.html.twig", line 4, in Twig\Template::displayWithErrorHandling
style="{{ swipe.background|get_mime_type('backgroundFile') == 'image' ? 'background-image: url('~vich_uploader_asset(swipe.background, 'backgroundFile')~');' }}
File "/src/Controller/UserController.php", line 54, in App\Controller\UserController::editSwipeUp
return $this->render('swipe/edit.html.twig', [
File "/public/index.php", line 5
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
...
(21 additional frame(s) were not displayed)
Sentry Issue: SWIPEUP-21