[BUGFIX] Use MissingArrayPathException in InheritancesResolverService 24/55624/4
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 8 Feb 2018 23:11:35 +0000 (00:11 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 8 Feb 2018 23:37:16 +0000 (00:37 +0100)
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>
typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php

index c561afe..10edf3d 100644 (file)
@@ -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;
         }
     }