diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonController.php b/src/Bundle/ChillPersonBundle/Controller/PersonController.php index 03da97d5f..f9190857c 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonController.php @@ -155,7 +155,7 @@ final class PersonController extends AbstractController $person = $this->_getPerson($person_id); if ($person === null) { - return $this->createNotFoundException(); + throw $this->createNotFoundException(); } $this->denyAccessUnlessGranted('CHILL_PERSON_UPDATE', $person,