diff --git a/bundle/Command/RefreshEzFieldsCommand.php b/bundle/Command/RefreshEzFieldsCommand.php index 846d8a3a..c2c0d2ec 100644 --- a/bundle/Command/RefreshEzFieldsCommand.php +++ b/bundle/Command/RefreshEzFieldsCommand.php @@ -570,7 +570,7 @@ private function updateNgrmAttribute(array $attribute, Value $value): void $oldDataText = $attribute['data_text']; - $oldValue = new Value(json_decode($oldDataText, true)); + $oldValue = new Value(json_decode($oldDataText, true) ?? []); $value->variations = $oldValue->variations; $newDataText = json_encode($value);