summaryrefslogtreecommitdiffstats
path: root/profiles/http/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-05-15 17:42:59 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-05-15 17:42:59 +0530
commit8e70d033456ca50379fd6d684093da3191e8e85a (patch)
treef69ae65e1feaa395f54ee29b4b52f59c1a0485df /profiles/http/src
parenta09d9cc71b803ece5b32305f8e8fdb558c308fd7 (diff)
Fix the moco null pointer execption
Issue-ID: CLI-100 Change-Id: I0bbba49ee9e15bf6557f5602321f06fb47274de9 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'profiles/http/src')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java b/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java
index 708f8edb..14728ad0 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java
@@ -64,7 +64,7 @@ public class OnapHttpCommand extends OnapCommand {
private OnapCommandHttpService oclipService = new OnapCommandHttpService();
- private MocoServer mocoServer;
+ private MocoServer mocoServer = null;
boolean shouldVerify = false;
@@ -194,7 +194,7 @@ public class OnapHttpCommand extends OnapCommand {
@Override
protected void postRun() throws OnapCommandException {
- if (shouldVerify && mockingEnabled) {
+ if (mocoServer != null) {
mocoServer.stop();
}
}