Fatal error: Uncaught Error: Call to a member function getId() on null in /var/www/html/shopware/custom/plugins/BuyAmAddons/Subscriber/Frontend.php:116
Stack trace:
#0 /var/www/html/shopware/custom/plugins/BuyAmAddons/Subscriber/Frontend.php(129): BuyAmAddons\Subscriber\Frontend->getSubCategories(3, Object(Enlight_View_Default), NULL)
#1 /var/www/html/shopware/engine/Library/Enlight/Event/Handler/Default.php(91): BuyAmAddons\Subscriber\Frontend->onPostDispatch(Object(Enlight_Controller_ActionEventArgs))
#2 /var/www/html/shopware/engine/Library/Enlight/Event/EventManager.php(220): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#3 /var/www/html/shopware/engine/Library/Enlight/Controller/Action.php(235): Enlight_Event_EventManager->notify('Enlight_Control...', Object(Enlight_Controller_ActionEventArgs))
#4 /var/www/html/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(563): Enlight_Controller_Action->dispatch('errorAction')
#5 /var/www/html/shopware/engine/Library/Enlight/ in /var/www/html/shopware/custom/plugins/BuyAmAddons/Subscriber/Frontend.php on line 116