Skip to content

Commit

Permalink
if condition fix to not to breake the loop if responce contains error
Browse files Browse the repository at this point in the history
Signed-off-by: khuddus shariff <[email protected]>
  • Loading branch information
Khuddusshariff0022 committed Dec 20, 2023
1 parent 16b8e7d commit 0896372
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ else if (json instanceof JSONArray) {
JSONArray jsonArray = new JSONArray(value);
for (int i = 0; i < jsonArray.length(); i++) {
Object obj = jsonArray.get(i);
HashMap<String, Object> hashMap = new ObjectMapper().readValue(obj.toString().trim(), HashMap.class);
HashMap<String, Object> hashMap = new ObjectMapper().readValue(obj.toString(), HashMap.class);
jsonList.add(hashMap);
}
demographicIdentity.putIfAbsent(e.getKey(), jsonList);
Expand Down

0 comments on commit 0896372

Please sign in to comment.