diff options
author | subhash kumar singh <subhash.kumar.singh@huawei.com> | 2019-03-07 06:14:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-07 06:14:10 +0000 |
commit | 802b47d0908e4ec81671f35584986d65ebed0c34 (patch) | |
tree | f11449e2df5001c4fe123a1baff00630166f68a4 /framework/src | |
parent | eb7b5a61b8c9b87b546fbc730ee9e80a618d1012 (diff) | |
parent | 5c668d26db6bb1e15ca5e128bee3231bf66a76db (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.java | 2 |
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) : ""); |