aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArindam Mondal <arind.mondal@samsung.com>2019-08-31 10:20:28 +0900
committerarindamm <arind.mondal@samsung.com>2019-08-31 10:23:02 +0900
commit1a9271df40d56f0a21fcf0f55b4cd58a602d6613 (patch)
treef502cf236a0971feec888ca95060106ec62d9be2
parent1ac068050203bbe8214b13a267b772a9220a004f (diff)
Fix Nullpointer
Issue-ID: CLI-213 Change-Id: I495fe15ab0b8c557f8a8d52c11953c083e5492e4 Signed-off-by: arindamm <arind.mondal@samsung.com>
-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);