Originally Posted by
JaclynMcKewan
While waiting for the light to change, I stayed in the right side of the lane, and a cop car pulled up next to me.
There was your mistake: In a situation like that, control the lane so another vehicle cannot pull up alongside you.
One more link... a pretty thorough
listing of all laws related to bicycles in NYS from the DOT website.