Skip to content

Commit

Permalink
[Bug]: Attempt to read property "value" on null in Merge.php (#622)
Browse files Browse the repository at this point in the history
* [Bug]: Attempt to read property "value" on null in Merge.php

* Apply php-cs-fixer changes

Co-authored-by: mcop1 <[email protected]>
  • Loading branch information
mcop1 and mcop1 authored Nov 21, 2022
1 parent d3e4424 commit 0f31e82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GraphQL/Query/Operator/Merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public function getLabeledValue($element, ResolveInfo $resolveInfo = null)
$valueResolver = $this->getGraphQlService()->buildValueResolverFromAttributes($c);

$childResult = $valueResolver->getLabeledValue($element, $resolveInfo);
if ($childResult === null) {
continue;
}
$childValues = $childResult->value;

if ($this->flatten) {
Expand Down

0 comments on commit 0f31e82

Please sign in to comment.