HDDS-456. TestOzoneShell#init is breaking due to Null Pointer Exception. Contributed by Dinesh Chitlangia.

This commit is contained in:
Arpit Agarwal 2018-09-13 13:00:35 -07:00
parent 2886024ac3
commit 76a0fdfed9
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}