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

Commit 936d62b

Browse files
author
Oleksii Korshenko
committed
MAGETWO-81990: Virtual Theme load: Check for null to actually reach the code that handles this case to t… #11240
- Merge Pull Request magento/magento2#11240 from leptoquark1/magento2:2.2-develop - Merged commits: 1. 16a8050 2. 86032de
2 parents 08ec8ce + 86032de commit 936d62b

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/Model/Layout

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Model/Layout/Merge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ private function getXmlErrors($libXmlErrors)
799799
protected function _getPhysicalTheme(\Magento\Framework\View\Design\ThemeInterface $theme)
800800
{
801801
$result = $theme;
802-
while ($result->getId() && !$result->isPhysical()) {
802+
while ($result !== null && $result->getId() && !$result->isPhysical()) {
803803
$result = $result->getParentTheme();
804804
}
805805
if (!$result) {

0 commit comments

Comments
 (0)