-
Christian Kuhn authored
If ArrayUtility::getValueByPath() does not find a given path in an array structure, it currently throws a generic \RuntimeException. Checking the path is one of the key components of the method and consuming code may not know if the path exists at all, which is fine. Throwing global \RuntimeException thus forces various places to catch \RuntimeException which possibly hides away programming errors and mis-uses. The patch makes getValueByPath() throw a specific exception if path does not exists. Catching that specific exception reduces the number of global 'catch \RuntimeException' significantly. The patch also adds another catch in early install tool to fix a not recoverable fatal if LocalConfiguration 'EXTENSIONS' array does not yet exist, for instance if upgrading from v8 to v9. Change-Id: If65b1b6ba2181b4cd7de2ce41776c0d78a5b513f Resolves: #83615 Resolves: #83590 Releases: master Reviewed-on: https://review.typo3.org/55412 Reviewed-by: Frank Naegler <frank.naegler@typo3.org> Tested-by: Frank Naegler <frank.naegler@typo3.org> Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de> Tested-by: TYPO3com <no-reply@typo3.com> Tested-by: Mathias Brodala <mbrodala@pagemachine.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
d0873491