Fatal error: Uncaught Error: Call to a member function getPath() on null in /app/app/code/Tbg/CatalogRestriction/Controller/Category/View.php:127 Stack trace: #0 /app/vendor/magento/framework/Interception/Interceptor.php(146): Tbg\CatalogRestriction\Controller\Category\View->afterExecute(Object(O2web\Catalog\Controller\Category\View\Interceptor), Object(Magento\Framework\Controller\Result\Forward\Interceptor)) #1 /app/vendor/magento/framework/Interception/Interceptor.php(153): O2web\Catalog\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}() #2 /app/generated/code/O2web/Catalog/Controller/Category/View/Interceptor.php(26): O2web\Catalog\Controller\Category\View\Interceptor->___callPlugins('execute', Array, Array) #3 /app/vendor/magento/framework/App/Action/Action.php(108): O2web\Catalog\Controller\Category\View\Interceptor->execute() #4 /app/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #5 /a in /app/app/code/Tbg/CatalogRestriction/Controller/Category/View.php on line 127