summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Mitsura <oleg.mitsura@amdocs.com>2021-10-04 20:43:47 -0400
committerOleg Mitsura <oleg.mitsura@amdocs.com>2021-10-04 20:52:06 -0400
commit3ed7d5863ec628ff02943c353d352646a71dbd5e (patch)
treee547c972f74cb26eda084bf221526d78e4e27a56
parenta66d29f4ba5f5d5636f3de84ab184dad844f027b (diff)
CCSDK-3480 Allow empty variables.
Issue-ID: CCSDK-3480 Empty variables should be allowed, else they will not be found in MDSAL at a later time. Current RestapiCallNode removes them. Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I22167fa9dbdef37fa70dc42c03799a05d5c38705
-rwxr-xr-xplugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java b/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
index fdc164463..5756d4e58 100755
--- a/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
+++ b/plugins/restapi-call-node/provider/src/main/java/org/onap/ccsdk/sli/plugins/restapicall/RestapiCallNode.java
@@ -614,7 +614,7 @@ public class RestapiCallNode implements SvcLogicJavaPlugin {
String var1 = template.substring(i1 + 2, i2);
String value1 = format == Format.XML ? XmlJsonUtil.getXml(mm, var1) : XmlJsonUtil.getJson(mm, var1);
- if (value1 == null || value1.trim().length() == 0) {
+ if (value1 == null) {
// delete the whole element (line)
int i3 = template.lastIndexOf('\n', i1);
if (i3 < 0) {