diff --git a/src/main/java/com/segment/analytics/android/integrations/firebase/FirebaseIntegration.java b/src/main/java/com/segment/analytics/android/integrations/firebase/FirebaseIntegration.java index a714665..cb21720 100644 --- a/src/main/java/com/segment/analytics/android/integrations/firebase/FirebaseIntegration.java +++ b/src/main/java/com/segment/analytics/android/integrations/firebase/FirebaseIntegration.java @@ -224,6 +224,8 @@ && isNullOrEmpty(properties.currency())) { private static ArrayList formatProducts(List products) { ArrayList mappedProducts = new ArrayList<>(); + if (products == null) return mappedProducts; + for (ValueMap product : products) { Bundle mappedProduct = new Bundle(); for (Map.Entry innerEntry : product.entrySet()) {