diff --git a/lib/Cake/Utility/Debugger.php b/lib/Cake/Utility/Debugger.php index ef906659e..e71e0ea5e 100644 --- a/lib/Cake/Utility/Debugger.php +++ b/lib/Cake/Utility/Debugger.php @@ -593,6 +593,11 @@ protected static function _object($var, $depth, $indent) { $reflectionProperties = $ref->getProperties($filter); foreach ($reflectionProperties as $reflectionProperty) { $reflectionProperty->setAccessible(true); + + if (!$reflectionProperty->isInitialized($var)) { + continue; + } + $property = $reflectionProperty->getValue($var); $value = static::_export($property, $depth - 1, $indent);