#3 Add null chack for command name
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
d3bb6fa5a0
commit
3960b10e8e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user