#3 Add null chack for command name

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2019-06-08 10:50:51 -04:00
parent d3bb6fa5a0
commit 3960b10e8e

View File

@ -75,6 +75,9 @@ public abstract class Command implements ICommand {
* @param name the command name */
public Command(final String name) {
super();
if (name == null) {
throw new IllegalArgumentException("The command name is mandatory");
}
this.name = name;
}