summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsb5356 <sb5356@att.com>2020-03-24 11:58:06 -0400
committersb5356 <sb5356@att.com>2020-03-24 11:58:06 -0400
commit5b620a76c08ee7420f96bf8ddd6fde2ed4f0e97f (patch)
tree4907e7410a4028576f843c0b23346f61d0e0dfa4
parent498d0a4599884b65ac6f3a7dfc2f422659680e63 (diff)
Restapi-call-node: Restoring removal of empty context values
Issue-ID: CCSDK-2173 Signed-off-by: Stan Bonev <sb5356@att.com> Change-Id: Ib95ad070cec6027192de71740a1400f6a1184488
-rw-r--r--restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/XmlJsonUtil.java4
1 files changed, 4 insertions, 0 deletions
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 5e293d459..9870221d7 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);