Skip to content

Commit

Permalink
Null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
martineiber committed Dec 3, 2024
1 parent a653eef commit 43068be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataObject/Data/Adapter/LocalizedFieldsAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function normalize(

$value->loadLazyData();
$originalValue = $fieldDefinition->normalize($value);
if (empty($originalValue)) {
if ($originalValue === null) {
return null;
}
$languages = array_keys($originalValue);
Expand Down

0 comments on commit 43068be

Please sign in to comment.