From e835a1e1f6e4af631e4d9191d8de0e5da8da61cd Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Fri, 9 Feb 2018 00:11:35 +0100 Subject: [PATCH] [BUGFIX] Use MissingArrayPathException in InheritancesResolverService With change for issue #83238 the specific exception MissingArrayPathException has been accidently changed back to a generic \RuntimeException, fix this again. Change-Id: I60f189c48a21bc7a6e648f4e811f4ae312ccc9ef Releases: master Resolves: #83815 Related: #83238 Related: #83615 Reviewed-on: https://review.typo3.org/55624 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../Classes/Mvc/Configuration/InheritancesResolverService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php b/typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php index c561afeef91c..10edf3d67f0d 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php @@ -16,6 +16,7 @@ namespace TYPO3\CMS\Form\Mvc\Configuration; */ use TYPO3\CMS\Core\Utility\ArrayUtility; +use TYPO3\CMS\Core\Utility\Exception\MissingArrayPathException; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Object\ObjectManager; use TYPO3\CMS\Form\Mvc\Configuration\Exception\CycleInheritancesException; @@ -353,7 +354,7 @@ class InheritancesResolverService { try { return ArrayUtility::getValueByPath($config, $path, $delimiter); - } catch (\RuntimeException $exception) { + } catch (MissingArrayPathException $exception) { return null; } } -- GitLab