Skip to content

Commit 0af982b

Browse files
authored
[Bug]: Cannot use concatenator on attributes in object bricks because of null value exception. (#569)
* Fix: Error when concatenate empty values * Apply php-cs-fixer changes Co-authored-by: robertSt7 <[email protected]>
1 parent 78d62c3 commit 0af982b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/GraphQL/Query/Operator/Concatenator.php

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public function getLabeledValue($element, ResolveInfo $resolveInfo = null)
4747
$valueResolver = $this->getGraphQlService()->buildValueResolverFromAttributes($c);
4848

4949
$childResult = $valueResolver->getLabeledValue($element, $resolveInfo);
50+
if ($childResult == null) {
51+
continue;
52+
}
5053
$childValues = $childResult->value;
5154
if ($childValues && !is_array($childValues)) {
5255
$childValues = [$childValues];

0 commit comments

Comments
 (0)