Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
fix(entities): enum map throws exception for empty maps (#195)
Browse files Browse the repository at this point in the history
* fix(entities): enum map throws exception for empty maps

* fix(entities): enum map throws exception for empty maps
  • Loading branch information
skjindal93 authored Mar 6, 2024
1 parent c595ac6 commit f284959
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
Expand Down Expand Up @@ -330,7 +330,7 @@ QueryNode buildAndFilterTree(EntitiesRequest entitiesRequest) {
}

Map<AttributeSource, Filter> sourceToAndFilterMap =
new EnumMap<>(buildSourceToAndFilterMap(entitiesRequest.getFilter()));
new HashMap<>(buildSourceToAndFilterMap(entitiesRequest.getFilter()));

// qs node as the pivot node to fetch time range data
QueryNode qsNode =
Expand Down

0 comments on commit f284959

Please sign in to comment.