diff --git a/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php b/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php index 191a97ff64..fcb97a25bd 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php +++ b/src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php @@ -91,7 +91,7 @@ class ProfilerListener $profiler = $this->container->get('profiler'); - if ($parent = $this->container->getCurrentScopedStack('request')) { + if ($parent = $this->container->getCurrentScopedStack('request') && isset($parent['request']['profiler'])) { $profiler->setParent($parent['request']['profiler']->getToken()); }