U.S. Bankruptcy Judge Harlin Hale of the Northern District of Texas on Tuesday dismissed the National Rifle Association’s Chapter 11 bankruptcy petition, finding that the petition was not filed in good faith.

The NRA filed for bankruptcy protection in January after the New York Attorney General’s Office sued to dissolve the gun-rights advocacy group, alleging that it had engaged in extensive misconduct as a nonprofit chartered in the state.