Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 17d37b2

Browse files
authored
Update Guest.php
Bug fix ref: magento/magento2#11275
1 parent 03f7ded commit 17d37b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Sales/Helper/Guest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ public function loadValidOrder(App\RequestInterface $request)
178178
public function getBreadcrumbs(\Magento\Framework\View\Result\Page $resultPage)
179179
{
180180
$breadcrumbs = $resultPage->getLayout()->getBlock('breadcrumbs');
181+
if (!$breadcrumbs) {
182+
return;
183+
}
181184
$breadcrumbs->addCrumb(
182185
'home',
183186
[

0 commit comments

Comments
 (0)