Fatal error: Uncaught Error: Call to a member function prepareForCache() on null in /var/www/custom/project/TspoShoppingWorlds/Subscriber/Frontend/CategorySubscriber.php:116
Stack trace:
#0 /var/www/custom/project/TspoShoppingWorlds/Subscriber/Frontend/CategorySubscriber.php(91): TspoShoppingWorlds\Subscriber\Frontend\CategorySubscriber->getCategoryShoppingWorld(484, 'https://sportfi...', Object(Shopware\Bundle\StoreFrontBundle\Struct\Product\Manufacturer), Array)
#1 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Event/Handler/Default.php(90): TspoShoppingWorlds\Subscriber\Frontend\CategorySubscriber->main(Object(Enlight_Controller_ActionEventArgs))
#2 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#3 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Controller/Action.php(203): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#4 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch('indexAction')
#5 /var/www/vendor/shopware/shopware/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#6 /var/www/vendor/shopware/shopware/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch()
#7 /var/www/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(AppKernel), Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 /var/www/vendor/shopware/shopware/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#10 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#11 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#12 /var/www/vendor/shopware/shopware/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#13 /var/www/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#14 /var/www/vendor/shopware/shopware/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /var/www/shopware.php(20): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#16 {main}
thrown in /var/www/custom/project/TspoShoppingWorlds/Subscriber/Frontend/CategorySubscriber.php on line 116