summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2019-09-04 05:44:30 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-04 05:44:30 +0000
commitb58675ffa633826ab77d53f1af8006a844ed8924 (patch)
treefee065948a3246a1a3b98965d9087b4832f1e1b5
parent3f698ab311e801115d4e69deadcd20777319084a (diff)
parent1a9271df40d56f0a21fcf0f55b4cd58a602d6613 (diff)
Merge "Fix Nullpointer"
-rw-r--r--main/src/main/java/org/onap/cli/main/OnapCli.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java
index 268b23cf..cec9cc01 100644
--- a/main/src/main/java/org/onap/cli/main/OnapCli.java
+++ b/main/src/main/java/org/onap/cli/main/OnapCli.java
@@ -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);