Fix codacy problem

Avoid throwing null pointer exceptions.
This commit is contained in:
ghubstan 2020-07-09 16:56:09 -03:00
parent efbaa5be73
commit 05d0ce0ef8
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -66,7 +66,7 @@ class SystemCommandExecutor {
*/
public SystemCommandExecutor(final List<String> cmdOptions) {
if (cmdOptions == null)
throw new NullPointerException("No command params specified.");
throw new IllegalStateException("No command params specified.");
this.cmdOptions = cmdOptions;
this.sudoPassword = null;