Fatal error: Uncaught Error: Call to a member function getCode() on null in /html/magento2/vendor/magento/module-store/App/Action/Plugin/Context.php:137 Stack trace: #0 /html/magento2/vendor/magento/module-store/App/Action/Plugin/Context.php(101): Magento\Store\App\Action\Plugin\Context->updateContext(Object(Magento\Store\Model\Store\Interceptor)) #1 /html/magento2/vendor/magento/framework/Interception/Interceptor.php(121): Magento\Store\App\Action\Plugin\Context->beforeDispatch(Object(Magento\Framework\App\Action\Forward\Interceptor), Object(Magento\Framework\App\Request\Http)) #2 /html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Action\Forward\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #3 /html/magento2/generated/code/Magento/Framework/App/Action/Forward/Interceptor.php(26): Magento\Framework\App\Action\Forward\Interceptor->___callPlugins('dispatch', Array, Array) #4 /html/magento2/vendor/magento/framework/App/FrontCont in /html/magento2/vendor/magento/module-store/App/Action/Plugin/Context.php on line 137