A judge won’t let a traveling firearms dealer carry a concealed weapon in New York City to protect himself and his wares from “criminals and terrorists.”

Cavalier Knight applied for a gun permit from the New York City Police Department in 2014. He went to court when the application was denied. He claimed the NYPD violated his Second Amendment rights.

But in a decision posted Friday, a judge rejected that claim while upholding New York’s tough gun control law, the New York Daily News reported Saturday.

Manhattan State Court Judge Michael Stallings said the NYPD was not infringing on Knight’s constitutional rights by refusing to let him bear arms on sales calls.

The independent arms merchant argued that without a gun it would be easier for criminals and terrorists to steal his goods.

“That claim is based upon pure speculation, which is unsupported by any evidence,” the judge said.

Knight is a New York City resident and sells weaponry through Armored Mobility, a California firm.

The NYPD denied Knight’s application, saying that he had been selling firearms without incident for years and that he failed to show he’s in more danger than others in his profession.