diff --git a/DataExporter/Model/Indexer/FeedUpdater.php b/DataExporter/Model/Indexer/FeedUpdater.php index f4ad17d..647020c 100644 --- a/DataExporter/Model/Indexer/FeedUpdater.php +++ b/DataExporter/Model/Indexer/FeedUpdater.php @@ -108,11 +108,11 @@ private function insertUpdateWithRetry( } } catch (DeadlockException $deadlockException) { if ($lastAttempt) { - $this->logError($deadlockException, $metadata, $dataForInsert); + $this->logError($deadlockException, $metadata, $dataForInsert ?? []); } return false; } catch (\Throwable $e) { - $this->logError($e, $metadata, $dataForInsert); + $this->logError($e, $metadata, $dataForInsert ?? []); } return true; }