summaryrefslogtreecommitdiffstats
path: root/site-manager
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-07-25 14:50:12 +0000
committerGerrit Code Review <gerrit@onap.org>2017-07-25 14:50:12 +0000
commit85f5fade13c0c326c808cea21d85e79814fd862a (patch)
treee3805f790a80a8999f2cf89d8994eba3ba85b47a /site-manager
parent8a6170b76693a10c37237978c33e94b3f8bf8f0d (diff)
parenta9cf7cad63d4e241ce46dcfc367ead2279c3fa69 (diff)
Merge "[POLICY-8] clean commons from sonar blockers"
Diffstat (limited to 'site-manager')
-rw-r--r--site-manager/src/main/java/org/openecomp/policy/common/sitemanager/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/site-manager/src/main/java/org/openecomp/policy/common/sitemanager/Main.java b/site-manager/src/main/java/org/openecomp/policy/common/sitemanager/Main.java
index 3344f923..52f36e33 100644
--- a/site-manager/src/main/java/org/openecomp/policy/common/sitemanager/Main.java
+++ b/site-manager/src/main/java/org/openecomp/policy/common/sitemanager/Main.java
@@ -167,7 +167,7 @@ public class Main
System.exit(1);
}
- if (cmd.getOptionValue('h') != null || cmd.getOptionValue('?') != null)
+ if (cmd == null || cmd.getOptionValue('h') != null || cmd.getOptionValue('?') != null)
{
help();
System.exit(0);