HDFS-13261. Fix incorrect null value check. Contributed by Jianfei Jiang.
This commit is contained in:
parent
299b40ff8b
commit
3fad968624
@ -145,7 +145,7 @@ static class HelpCommand implements Command {
|
||||
private final Command[] commands;
|
||||
|
||||
public HelpCommand(Command[] commands) {
|
||||
Preconditions.checkNotNull(commands != null);
|
||||
Preconditions.checkNotNull(commands, "commands cannot be null.");
|
||||
this.commands = commands;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user