Commit 70ed0ede authored by Josua Vogel's avatar Josua Vogel Committed by Oliver Bartsch
Browse files

[BUGFIX] Avoid invalid type exception in FinisherVariableProvider

Guard invalid argument type exception by using null coalescing operator
in `\TYPO3\CMS\Form\Domain\Finishers\FinisherVariableProvider`.

Resolves: #97699
Releases: main, 11.5
Change-Id: I6312fb35d52857004e0467a20e215fc4095e0037

Tested-by: Stefan Bürk's avatarStefan Bürk <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <>
Reviewed-by: crell's avatarcrell <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
parent f9c1ed54
......@@ -97,7 +97,7 @@ final class FinisherVariableProvider implements \ArrayAccess, \IteratorAggregate
public function exists($finisherIdentifier, $key): bool
try {
ArrayUtility::getValueByPath($this->objects[$finisherIdentifier], $key, '.');
ArrayUtility::getValueByPath($this->objects[$finisherIdentifier] ?? [], $key, '.');
} catch (MissingArrayPathException $e) {
return false;
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