—Appeal by the defendant from a judgment of the Supreme Court, Queens County (Cooperman, J.), rendered June 26, 2001, convicting him of robbery in the first degree and robbery in the second degree, upon a jury verdict, and imposing sentence.
Ordered that the judgment is reversed, on the law, and a new trial is ordered.
In addition, the court erred in precluding cross-examination of the complainant regarding the length of time it took him to identify the defendant at a lineup. Where, as here, the reliability of the identification by the complainant, the sole eyewitness, was crucial at trial, such restriction on cross-examination was improper (see People v Williamson, 79 NY2d 799, 800-801 [1991]; People v Ashner, 190 AD2d 238, 247 [1993]).
Under the circumstances of this case, the errors were not harmless. Florio, J.P., Krausman, Goldstein and Townes, JJ., concur.