The highest court in Massachusetts has upheld a lower court decision that granted a new trial to a man convicted of the 1993 killing of a Boston police officer.

Sean Ellis was sentenced to life in prison after he was convicted in 1995 of the shooting death of Officer John Mulligan. Mulligan was shot five times in the face at about 3:30 a.m. on Sept. 26, 1993 while he slept in his car while on a security detail outside a pharmacy.

The Supreme Judicial Court on Friday agreed with a Superior Court judge that ruled that Ellis didn't get a fair trial because two detectives who played key roles in the investigation later pleaded guilty to corruption charges, and that prosecutors didn't provide Ellis' defense team with all the evidence.