diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java index b5bd361507..71cc6bae5f 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java @@ -305,6 +305,9 @@ public static OzoneManager createOm(String[] argv, terminate(0); return null; default: + if (argv == null) { + argv = new String[]{}; + } StringUtils.startupShutdownMessage(OzoneManager.class, argv, LOG); return new OzoneManager(conf); }