A “Dateline NBC” journalist who interviewed an upstate New York man accused of murdering his wife won’t have to testify at his trial, a unanimous panel of a state appeals court said Thursday, citing New York’s Shield Law.

The order, written by Appellate Division, Third Department Justice Lisa M. Fisher, reversed a decision by Chenango County Court Judge Frank B. Revoir Jr., who had enforced a subpoena compelling reporter Andrea Canning to testify in a new trial for Ganesh R. Ramsaran, who stands accused of the 2012 killing his wife.