Fatal error: Uncaught Error: Call to a member function getId() on null in /home/sonesson/public_html/app/code/Ereactor/CategoryPdf/Block/CategoryPdf.php:31 Stack trace: #0 /home/sonesson/public_html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(116): Ereactor\CategoryPdf\Block\CategoryPdf->__construct(Object(Magento\Framework\View\Element\Template\Context), Object(Magento\Framework\Registry), Object(Magento\Catalog\Model\CategoryFactory), Array) #1 /home/sonesson/public_html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Ereactor\\Catego...', Array) #2 /home/sonesson/public_html/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Ereactor\\Catego...', Array) #3 /home/sonesson/public_html/vendor/magento/framework/View/Element/BlockFactory.php(46): Magento\Framework\ObjectManager\ObjectManager->create('Ereactor\\Catego...', Array) #4 /home/sonesson in /home/sonesson/public_html/app/code/Ereactor/CategoryPdf/Block/CategoryPdf.php on line 31