Skip to content

Commit 776060f

Browse files
author
Oleksii Korshenko
authored
MAGETWO-81990: Virtual Theme load: Check for null to actually reach the code that handles this case to t… #11240
2 parents 08ec8ce + 936d62b commit 776060f

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)