Skip to content

Commit a0b14fd

Browse files
authored
MDEE-913: Exception when failing serialization (#454)
MDEE-913: Exception when failing serialization
1 parent afbb366 commit a0b14fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DataExporter/Model/Indexer/FeedUpdater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ private function insertUpdateWithRetry(
108108
}
109109
} catch (DeadlockException $deadlockException) {
110110
if ($lastAttempt) {
111-
$this->logError($deadlockException, $metadata, $dataForInsert);
111+
$this->logError($deadlockException, $metadata, $dataForInsert ?? []);
112112
}
113113
return false;
114114
} catch (\Throwable $e) {
115-
$this->logError($e, $metadata, $dataForInsert);
115+
$this->logError($e, $metadata, $dataForInsert ?? []);
116116
}
117117
return true;
118118
}

0 commit comments

Comments
 (0)