HDDS-466. Handle null in argv of StorageContainerManager#createSCM. Contributed by Nanda kumar

(cherry picked from commit b0a659c8c0)
This commit is contained in:
Nanda kumar 2018-09-15 02:34:33 +05:30
parent 435c3eacff
commit 4d2db42595
1 changed files with 2 additions and 1 deletions

View File

@ -376,9 +376,10 @@ public final class StorageContainerManager extends ServiceRuntimeInfoImpl
out.println(USAGE + "\n");
}
public static StorageContainerManager createSCM(String[] argv,
public static StorageContainerManager createSCM(String[] args,
OzoneConfiguration conf)
throws IOException {
String[] argv = (args == null) ? new String[0] : args;
if (!HddsUtils.isHddsEnabled(conf)) {
System.err.println(
"SCM cannot be started in secure mode or when " + OZONE_ENABLED + "" +