Updated

A jury's $38 million award to the family of a woman killed by police in suburban Baltimore has been thrown out of court by a judge.

A police bullet killed 23-year-old Korryn Gaines and wounded her 5-year-old son in 2016 in Randallstown, Md., after an hours-long standoff—an incident that drew national attention.

In a lengthy decision, Maryland Judge Mickey Norman rejected the jury’s finding last year that the officer who shot Gaines acted unreasonably in violation of her civil rights, the Baltimore Sun reported Friday.

BALTIMORE COUNTY JURY AWARDS $37M TO FAMILY OF POLICE SHOOTING VICTIM

Norman, who sits in Baltimore County, said in his ruling that the officer, Royce Ruby, was entitled to qualified immunity, a legal doctrine shielding cops and government officials from civil liability when carrying out their duties, the paper reported.

POLICE KILL MARYLAND WOMAN WHO POINTED GUN DURING HOURS-LONG STANDOFF; BOY WOUNDED

Baltimore County police said in 2016 that Gaines was shot after pointing a shotgun at police who went to her home to serve warrants on her and her fiancé. She had failed to appear in court in a traffic case. Her son, Kodi, was shot in the face.

CLICK HERE TO GET THE FOX NEWS APP

Gaines family lawyer J. Wyndal Gordon told the paper the judge’s ruling would be appealed.

The “family is disappointed but not deterred,” Gordon told Fox45 Baltimore.