From 62ca2151a733bc9c167856de24fe5632de6fc158 Mon Sep 17 00:00:00 2001 From: Arif Burak Demiray Date: Tue, 23 Jan 2024 11:46:24 +0300 Subject: [PATCH] feat: add is empty checl --- .../src/main/java/ly/count/sdk/java/internal/ModuleViews.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleViews.java b/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleViews.java index 778638d9..9a8b59b6 100644 --- a/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleViews.java +++ b/sdk-java/src/main/java/ly/count/sdk/java/internal/ModuleViews.java @@ -90,7 +90,7 @@ void setGlobalViewSegmentationInternal(@Nullable Map segmentatio globalViewSegmentation.clear(); - if (segmentation != null) { + if (segmentation != null && !segmentation.isEmpty()) { removeReservedKeysFromViewSegmentation(segmentation); ModuleEvents.removeInvalidDataFromSegments(segmentation, L); globalViewSegmentation.putAll(segmentation);