From 5b620a76c08ee7420f96bf8ddd6fde2ed4f0e97f Mon Sep 17 00:00:00 2001 From: sb5356 Date: Tue, 24 Mar 2020 11:58:06 -0400 Subject: Restapi-call-node: Restoring removal of empty context values Issue-ID: CCSDK-2173 Signed-off-by: Stan Bonev Change-Id: Ib95ad070cec6027192de71740a1400f6a1184488 --- .../main/java/org/onap/ccsdk/sli/plugins/restapicall/XmlJsonUtil.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'restapi-call-node/provider/src/main') diff --git a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/XmlJsonUtil.java b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/XmlJsonUtil.java index 5e293d45..9870221d 100644 --- a/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/XmlJsonUtil.java +++ b/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/XmlJsonUtil.java @@ -83,6 +83,10 @@ public final class XmlJsonUtil { continue; } + if (value == null || value.trim().isEmpty()) { + continue; + } + if (key.startsWith(var + "[")) { String newKey = key.substring(var.length()); set(ll, newKey, value); -- cgit 1.2.3-korg