diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index db5db15b1..53c04f723 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -679,6 +679,10 @@ class View extends Object { break; } + + if (!$parent) { + throw new LogicException(__d('cake_dev', 'The parent %s you specified doesn\'t exist.', $this->_currentType)); + } if ($parent == $this->_current) { throw new LogicException(__d('cake_dev', 'You cannot have views extend themselves.')); }