In People v. Williams, 97 AD2d 706, 468 N.Y.S.2d 339 (1st Dept 1983), officers responded to a radio call of an armed robbery in a hotel which was known for drug and gun activity.
Upon arrival at the location their attention was directed to an apartment on the second floor where the owner permitted them to enter.
As they entered the apartment, two men hurriedly got off the bed and two other men got up from their chairs.
The officers observed drugs, drug paraphernalia and one of the men was pacing nervously around the room. The officers ordered all men to stand against the wall.
The court held "It was clearly an appropriate precautionary measure to have directed the several occupants of the room to stand near the wall."