Skip to content

Commit 6b4d4da

Browse files
committed
Fix for when localeData is null
1 parent 8760d13 commit 6b4d4da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/EventListener/StorageListener.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ public function postSave(StorageEvent $event)
266266
}
267267

268268
$localeData = json_decode($subject[$localeSlug . 'data']);
269+
if (is_null($localeData)) {
270+
$localeData = [];
271+
}
272+
269273
foreach ($localeData as $key => $value) {
270274
$subject->set($key, $value);
271275
}

0 commit comments

Comments
 (0)