Bedfordshire police found drugs with a street value of £640 when they searched a shed being used by burglar Aiden Long in December 2020.
Long was jailed for 42 months in June last year but the drugs case was not brought against until this year.
Luton Crown Court heard the police raided his mother’s home in Biggleswade in relation to the burglary he had committed.
In the shed they found 53 wraps of cocaine weighing 3.23 grams and 11 wraps of heroin weighing 0.79 grams.
They had a street value of £640. In a police interview Long said he had been forced to hold the drugs for two men who had threatened him.
Long, now 21, of Hanbury, Orton Goldhay, Peterborough appeared for sentence having pleaded guilty to two charges of possessing Class A drugs with intent.
Defending, Simon Gledhill said: “He is out of prison on licence now. The delay in this case is through no fault of his own.
“The investigation into the two cases were bound up. The drugs were found when a warrant for the burglary was executed.
“He has already served a long sentence, predominantly in lockdown conditions.
“He has now come out on the other side and is determined to do well for himself and put his drug problems behind him.”
Judge Gary Lucie said: “There has been a delay in bringing this case for reasons nobody can explain.
“Had this been dealt with at same the burglaries the judge would have taken totality into account.”
He passed an 18 month sentence suspended for two years.
The judge told him: “It is really important you stay out of trouble or you will go back to custody.”
Long thanked the judge.
Get daily FREE news here:
Sign up to get your own daily update of Bedfordshire News — It’s free.