From 3a38c4641d115cb39292b7543e112ee97c5db639 Mon Sep 17 00:00:00 2001 From: Surabhi Date: Tue, 17 May 2022 15:28:29 +0530 Subject: [PATCH] minor fix --- .../java/com/uci/orchestrator/Consumer/ReactiveConsumer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java b/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java index d6ab12d..e2616e6 100644 --- a/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java +++ b/src/main/java/com/uci/orchestrator/Consumer/ReactiveConsumer.java @@ -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