useless code
Useless code

If the command is null, the method won’t be called