aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2019-03-07 06:14:10 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-07 06:14:10 +0000
commit802b47d0908e4ec81671f35584986d65ebed0c34 (patch)
treef11449e2df5001c4fe123a1baff00630166f68a4 /framework/src
parenteb7b5a61b8c9b87b546fbc730ee9e80a618d1012 (diff)
parent5c668d26db6bb1e15ca5e128bee3231bf66a76db (diff)
Merge "Fix Empty service list in product"
Diffstat (limited to 'framework/src')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/cmd/product/OnapServiceListCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/cmd/product/OnapServiceListCommand.java b/framework/src/main/java/org/onap/cli/fw/cmd/product/OnapServiceListCommand.java
index 8cbfa36c..010cdc19 100644
--- a/framework/src/main/java/org/onap/cli/fw/cmd/product/OnapServiceListCommand.java
+++ b/framework/src/main/java/org/onap/cli/fw/cmd/product/OnapServiceListCommand.java
@@ -72,7 +72,7 @@ public class OnapServiceListCommand extends OnapCommand {
}
}
- for (String service : rslt.get(product)) {
+ for (String service : rslt.getOrDefault(product, new HashSet<String>())) {
this.getResult().getRecordsMap().get("service").getValues().add(service);
this.getResult().getRecordsMap().get("description").getValues().add(
serviceDescs.containsKey(service) ? serviceDescs.get(service) : "");