diff --git a/src/Model/Write/Products/CollectionDecorator/StockData.php b/src/Model/Write/Products/CollectionDecorator/StockData.php
index <HASH>..<HASH> 100644
--- a/src/Model/Write/Products/CollectionDecorator/StockData.php
+++ b/src/Model/Write/Products/CollectionDecorator/StockData.php
@@ -214,6 +214,9 @@ class StockData implements DecoratorInterface
     private function getCombinedStock(ExportEntity $entity, int $storeId): float
     {
         $stockQuantities = $this->getStockQuantities($entity);
+        if (empty($stockQuantities)) {
+            return 0;
+        }
 
         switch ($this->config->getStockCalculation($storeId)) {
             case StockCalculation::OPTION_MAX:
Added check on empty array to prevent Exception on executing max on empty array