From a0b14fd3a8d9cb16f7efc6fad8d2ddbb7c747e2e Mon Sep 17 00:00:00 2001 From: Andrii Lugovyi Date: Thu, 12 Dec 2024 13:53:24 -0600 Subject: [PATCH] MDEE-913: Exception when failing serialization (#454) MDEE-913: Exception when failing serialization --- DataExporter/Model/Indexer/FeedUpdater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }