Skip to content

Commit

Permalink
feat: add is empty checl
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Jan 23, 2024
1 parent c2d2f46 commit 62ca215
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void setGlobalViewSegmentationInternal(@Nullable Map<String, Object> segmentatio

globalViewSegmentation.clear();

if (segmentation != null) {
if (segmentation != null && !segmentation.isEmpty()) {
removeReservedKeysFromViewSegmentation(segmentation);
ModuleEvents.removeInvalidDataFromSegments(segmentation, L);
globalViewSegmentation.putAll(segmentation);
Expand Down

0 comments on commit 62ca215

Please sign in to comment.