Finding that a juror had not lied to get himself impaneled at the trial, a judge denied a motion on Thursday to overturn the conviction of Peter Liang, the former New York City police officer found guilty in February of fatally shooting Akai Gurley in a housing project stairwell.

The ruling from the bench by Justice Danny K. Chun drew to a close a bizarre interlude that threatened to upend the prominent police misconduct case on the eve of Mr. Liang’s sentencing, now scheduled for Tuesday.

After a two-day hearing during which the juror, Michael Vargas, was questioned about his antipolice beliefs and whether he had hidden his father’s criminal past in order to be placed on Mr. Liang’s jury, Justice Chun decided that Mr. Vargas had not acted improperly by offering confusing statements about his father and that, at any rate, none of what he said had affected the guilty verdict.

After the ruling, the Brooklyn district attorney’s office issued a brief statement saying that it agreed with Justice Chun’s decision. Paul Shechtman, Mr. Liang’s lawyer, declined to comment.