From 75d5a0522e8a18c2f403ea284d62e445e3d6ddc2 Mon Sep 17 00:00:00 2001 From: Magento EngCom Team Date: Tue, 23 Jan 2018 10:54:44 -0600 Subject: [PATCH] :arrow_double_up: Forwardport of magento/magento2#11299 to 2.3-develop branch Applied pull request patch https://github.com/magento/magento2/pull/11299.patch (created by @lano-vargas) based on commit(s): 1. 17d37b2e362a75b69634ba9030ad37ef410713ab Fixed GitHub Issues in 2.3-develop branch: - magento/magento2#11275: Call to a member function addCrumb() (reported by @lano-vargas) --- app/code/Magento/Sales/Helper/Guest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/Magento/Sales/Helper/Guest.php b/app/code/Magento/Sales/Helper/Guest.php index a80be58bc003e..dd8845008d79e 100644 --- a/app/code/Magento/Sales/Helper/Guest.php +++ b/app/code/Magento/Sales/Helper/Guest.php @@ -178,6 +178,9 @@ public function loadValidOrder(App\RequestInterface $request) public function getBreadcrumbs(\Magento\Framework\View\Result\Page $resultPage) { $breadcrumbs = $resultPage->getLayout()->getBlock('breadcrumbs'); + if (!$breadcrumbs) { + return; + } $breadcrumbs->addCrumb( 'home', [