From c1a3a1bc706190ac8a03c78c9d992c06e34b3333 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 19 Dec 2017 18:31:06 +0530 Subject: Fix http profile to override the headers Issue-ID: CLI-66 Change-Id: I0aa2413db977449f163bc4a75bcd7900c95076b8 Signed-off-by: Kanagaraj Manickam k00365106 --- .../main/java/org/onap/cli/fw/output/OnapCommandResultAttribute.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/src/main/java') diff --git a/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResultAttribute.java b/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResultAttribute.java index d54fbff0..1208a3cd 100644 --- a/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResultAttribute.java +++ b/framework/src/main/java/org/onap/cli/fw/output/OnapCommandResultAttribute.java @@ -58,7 +58,9 @@ public class OnapCommandResultAttribute { private boolean isSecured = false; public void setValues(List values) { - this.values = (values == null) ? new ArrayList<>() : values; + if (values != null) { + this.values = values; + } } public String getName() { -- cgit 1.2.3-korg