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:

Resolves: #99698
Related: #99017
Releases: main
Change-Id: I12502623b6fd81cabb7202e6c175d9dedf8a1339

Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <>
Tested-by: Stefan Bürk's avatarStefan Bürk <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
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