Mr G pretended he was a 13-year-old schoolboy in an online chatroom to strike up a sexual conversation with someone whom he thought was a teenage girl.
He sent an explicit image of himself after telling the undercover officer that she was “sexy” and “beautiful”.
Experienced crime lawyer Kate Blackmore, from Stuart Miller Solicitors, was instructed to represent Mr G following his arrest and release on bail.
He later admitted engaging in sexual communications with a child and also confessed to having child pornography on a laptop.
Mr G pleaded guilty at the first opportunity and faced the prospect of an immediate prison sentence.
But after Ms Blackmore presented comprehensive mitigation on Mr G’s behalf, the judge agreed to show clemency and decided to impose a suspended jail term.
A spokesman for Stuart Miller Solicitors said: “Kate worked strenuously to put together a strong mitigation bundle.
“Mr G was later sentenced at the Crown Court.
“Following strong mitigation put forward on the client’s behalf and with the benefit of a pre-sentence report, the judge imposed a custodial sentence of four months, which was suspended for a period of 24 months.”