Fix Nullpointer 17/94717/1
authorArindam Mondal <arind.mondal@samsung.com>
Sat, 31 Aug 2019 01:20:28 +0000 (10:20 +0900)
committerarindamm <arind.mondal@samsung.com>
Sat, 31 Aug 2019 01:23:02 +0000 (10:23 +0900)
Issue-ID: CLI-213
Change-Id: I495fe15ab0b8c557f8a8d52c11953c083e5492e4
Signed-off-by: arindamm <arind.mondal@samsung.com>
main/src/main/java/org/onap/cli/main/OnapCli.java

index 268b23c..cec9cc0 100644 (file)
@@ -544,7 +544,7 @@ public class OnapCli {
                 OnapCliArgsParser.populateParams(cmd.getParameters(), this.args);
 
                 //start the execution
-                if (this.requestId != null && !this.requestId.isEmpty()) {
+                if (this.requestId != null && this.product != null && !this.requestId.isEmpty()) {
                     if (!(this.product.equalsIgnoreCase("open-cli") &&
                             this.cmdName.equalsIgnoreCase("execution-list"))) {
                         String input = cmd.getArgsJson(true);