aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/main/java/org')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java
index 30a7ac62..b878503a 100644
--- a/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java
+++ b/framework/src/main/java/org/onap/cli/fw/utils/OnapCommandDiscoveryUtils.java
@@ -267,6 +267,11 @@ public class OnapCommandDiscoveryUtils {
continue;
}
+ //There are schema like default input parameters and does not have command name
+ if (resourceMap.get(NAME) == null) {
+ continue;
+ }
+
schema.setSchemaName(resource.getFilename());
schema.setCmdName((String) resourceMap.get(NAME));