If you had been approached by an undercover cop or civilian agent of the police and offered drugs, and you refused, but he came back repeatedly and urged you to take some, or used some sort of pressure or threats, then this might invalidate the arrest and result in the charges being dismissed.