The judge ruled that the appointment of the prosecutor in the case was invalid.