A Brooklyn, N.Y., judge has granted a motion to suppress in a weapon-possession case, holding that texting while driving was not illegal in June 2009 and could not serve as the basis of a search and seizure.

In any case, Acting Supreme Court Justice Mark Dwyer held that even if texting had been illegal, doing so still would not have supported arresting drivers who text or searching their cars.