The search of your car without consent by the police is illegal. In order for the car search to be legal, the police would need to have either consent to search the car or probable cause to believe the car contained evidence of a crime. If either one of these grounds for a legal car search are missing, the evidence cannot be used against you. I would advise you to challenge the car search by hiring an experienced criminal defense attorney to file a motion to suppress the evidence since it was obtained by police in violation of the Fourth Amendment. If the court grants the suppression motion, the marijuana possession charge against you will be dismissed.
If you have been the victim of an illegal car search, contact Robert J. Shane, Esq. for a free phone consultation at (612) 339-1024 or visit his website for more informaiton at https://www.criminallawyerminnesota.com.