Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
surabhi-mahawar committed May 17, 2022
1 parent ee3ae1e commit 3a38c46
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ private String getFederatedUsersMeta(JsonNode campaign, JsonNode transformer) {
ArrayNode sampleData = mapper.createArrayNode();
for (int i = 0; i < users.length(); i++) {
ObjectNode userData = mapper.createObjectNode();
if(transformer.get("meta") != null && transformer.get("meta").get("params").toString() != null && !transformer.get("meta").get("params").toString().isEmpty()){
if(transformer.get("meta") != null && transformer.get("meta").get("params") != null
&& !transformer.get("meta").get("params").toString().isEmpty()){
JSONArray paramArr = new JSONArray(transformer.get("meta").get("params").toString());
for(int k=0; k<paramArr.length(); k++){
if(!((JSONObject) users.get(i)).isNull(paramArr.getString(k))){
Expand Down

0 comments on commit 3a38c46

Please sign in to comment.