Checked cmdArray for null values before sending for execution.