BALTIMORE (AP) — A police officer charged in the Freddie Gray case chose Tuesday to stand trial before a judge rather than a jury, eliminating a potential wild card in the divisive and emotionally charged case.

Officer Edward Nero was one of three arresting officers and faces assault, reckless endangerment and misconduct in office charges. Gray, a 25-year-old black man, made eye contact with one of the officers and took off running in April 2015. The officers arrested him and Gray was placed in the back of a police van, where he was critically injured. He died a week later, sparking protests, rioting and looting and prompting a city-wide curfew as the National Guard rolled in to help restore order.

Nero's trial is scheduled to begin Thursday and it is expected to last about five days. It's seen as a bellwether case for the other two arresting officers who face the same charges. They have all pleaded not guilty.

Nero is the second officer to stand trial. Late last year, the judge declared a mistrial when the jury couldn't reach a unanimous decision in the case against Officer William Porter, who checked on Gray several times after he was put in the police van.

While selecting the jury pool for Porter's trial, all potential jurors acknowledged that they were aware of the case and the $6.4 million settlement the city paid to Gray's family.

Nero's decision means that means Circuit Judge Barry Williams will hear the case. The trial will likely focus more on technical legal arguments than Porter's trial.

Williams ruled on several motions, saying attorneys can't talk about the legality of the knife that was found on Gray after his arrest. Attorneys for the officers say it was illegal and his arrest was justified. Prosecutors say the knife was legal and he should have never been arrested.

The judge also said attorneys can't talk about Gray's troubled past and he put strict limits on how much each side can talk about Gray's injuries.

The officers initially asked Williams for a change of venue, citing the extensive media coverage. Attorneys argued that because of the high-profile nature the case, jurors would likely be inherently biased, having already formed opinions about the case and its players, and might feel pressure to render a guilty verdict in order to quell any future unrest.

Williams denied the requests.

A bench trial has advantages and disadvantages for the defense, according to attorney Warren Alperstein, who is not involved in the case.

"The disadvantage of having a bench trial is that you're putting all your eggs in one basket. In a bench trial there is no hung jury, it's all or nothing for the defense," he said.

On the other hand, a judge is uniquely positioned to understand the nuances of the law. The state is likely to argue that the three arresting officers violated Gray's Fourth Amendment rights against unreasonable searches and seizures.

The defense will presumably argue that the officers acted within a law that allows officers to pursue, detain and pat down suspects who flee unprovoked from law enforcement from a high drug trafficking area.

"It's my belief a judge is better equipped to apply what amounts to be fairly technical and complex law than a jury would be able to do," Alperstein said.