aboutsummaryrefslogtreecommitdiffstats
path: root/validate
diff options
context:
space:
mode:
Diffstat (limited to 'validate')
-rw-r--r--validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java b/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
index d8e26329..6f84c953 100644
--- a/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
+++ b/validate/validation/src/test/java/org/onap/cli/validation/OnapValidationTest.java
@@ -53,7 +53,7 @@ public class OnapValidationTest {
if (sch.isIgnore()) {
continue;
}
- if (sch.getProduct().equals(version)) {
+ if (sch.getProduct() != null && sch.getProduct().equals(version)) {
System.out.println(
"************************* validate '" + sch.getCmdName() + "' *******************************");
OnapCommandRegistrar.getRegistrar().setEnabledProductVersion("open-cli");
@@ -74,7 +74,7 @@ public class OnapValidationTest {
if (sch.isIgnore()) {
continue;
}
- if (sch.getProduct().equals(version)) {
+ if (sch.getProduct() != null && sch.getProduct().equals(version)) {
System.out.println("[" + i++ + "] " + sch.getCmdName());
System.out.println("-----------------------------------------------\n\n");
this.handle(new String[] { sch.getCmdName(), "-h"});