Skip to content

Commit 16a8050

Browse files
author
David
committed
check for null to actually reach the code that handles this case to throw the appropriate exception
1 parent 9db4501 commit 16a8050

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

+1-1
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 (!is_null($result) && $result->getId() && !$result->isPhysical()) {
803803
$result = $result->getParentTheme();
804804
}
805805
if (!$result) {

0 commit comments

Comments
 (0)