Added an assertion to make sure that the command after parsing is not null