Fatal error: Uncaught TypeError: Argument 1 passed to ShopRelatedProductsFromAttribute\Subscriber\Frontend::getSpareparts() must be of the type array, null given, called in /var/www/share/faparetail.ch/htdocs/custom/plugins/ShopRelatedProductsFromAttribute/Subscriber/Frontend.php on line 40 and defined in /var/www/share/faparetail.ch/htdocs/custom/plugins/ShopRelatedProductsFromAttribute/Subscriber/Frontend.php:45 Stack trace: #0 /var/www/share/faparetail.ch/htdocs/custom/plugins/ShopRelatedProductsFromAttribute/Subscriber/Frontend.php(40): ShopRelatedProductsFromAttribute\Subscriber\Frontend->getSpareparts(NULL) #1 /var/www/share/faparetail.ch/htdocs/vendor/shopware/shopware/engine/Library/Enlight/Event/Handler/Default.php(91): ShopRelatedProductsFromAttribute\Subscriber\Frontend->onDetail(Object(Enlight_Controller_ActionEventArgs)) #2 /var/www/share/faparetail.ch/htdocs/vendor/shopware/shopware/engine/Library/Enlight/Event/EventManager.php(220): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEven in /var/www/share/faparetail.ch/htdocs/custom/plugins/ShopRelatedProductsFromAttribute/Subscriber/Frontend.php on line 45