HDFS-13261. Fix incorrect null value check. Contributed by Jianfei Jiang.

This commit is contained in:
Yiqun Lin 2018-03-15 11:12:25 +08:00
parent 299b40ff8b
commit 3fad968624

View File

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