Skip to content

Commit 354b7f7

Browse files
committed
NGSTACK-672 Properly handle empty fields
1 parent adc867d commit 354b7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundle/Command/RefreshEzFieldsCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ private function updateNgrmAttribute(array $attribute, Value $value): void
570570

571571
$oldDataText = $attribute['data_text'];
572572

573-
$oldValue = new Value(json_decode($oldDataText, true));
573+
$oldValue = new Value(json_decode($oldDataText, true) ?? []);
574574
$value->variations = $oldValue->variations;
575575

576576
$newDataText = json_encode($value);

0 commit comments

Comments
 (0)