Commit 499ff2fb authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Stefan Bürk
Browse files

[BUGFIX] Prevent null pointer exception in BackendConfigurationManager

According to the code, $request might be NULL,
leading to a null pointer exception on calling
`getAttribute()`. This got noticed on following
CI run: https://git.typo3.org/typo3/CI/cms/-/jobs/1917011.

Resolves: #99698
Related: #99017
Releases: main
Change-Id: I12502623b6fd81cabb7202e6c175d9dedf8a1339
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77559


Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 10a4e286
......@@ -215,7 +215,7 @@ class BackendConfigurationManager implements SingletonInterface
return $setupArray;
}
$site = $request->getAttribute('site');
$site = $request?->getAttribute('site');
$rootLine = [];
if ($pageId > 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment