Fatal error: Uncaught Error: Call to a member function getId() on null in /home/tcemartc/mag2/app/code/Lumaplaza/Productvideo/view/frontend/templates/productvideo.phtml:9 Stack trace: #0 /home/tcemartc/mag2/vendor/magento/framework/View/TemplateEngine/Php.php(59): include() #1 /home/tcemartc/mag2/vendor/magento/framework/View/Element/Template.php(271): Magento\Framework\View\TemplateEngine\Php->render(Object(Lumaplaza\Productvideo\Block\Productvideo), '/home/tcemartc/...', Array) #2 /home/tcemartc/mag2/vendor/magento/framework/View/Element/Template.php(301): Magento\Framework\View\Element\Template->fetchView('/home/tcemartc/...') #3 /home/tcemartc/mag2/vendor/magento/framework/View/Element/AbstractBlock.php(668): Magento\Framework\View\Element\Template->_toHtml() #4 /home/tcemartc/mag2/vendor/magento/framework/View/Layout.php(557): Magento\Framework\View\Element\AbstractBlock->toHtml() #5 /home/tcemartc/mag2/vendor/magento/framework/View/Layout.php(533): Magento\Framework\View\Layout->_renderBlock('productvideo.li...') #6 in /home/tcemartc/mag2/app/code/Lumaplaza/Productvideo/view/frontend/templates/productvideo.phtml on line 9