When young people find themselves caught up in the criminal justice system on serious charges relating to sexting practices, it's often a conundrum for sentencing judges.
In some cases judges have expressed concern about the trend, and have exercised their discretion not to record convictions against young people charged with serious child pornography offences, for sharing sexually explicit photos of themselves.
http://www.abc.net.au/news/2017-11-18/why-sexting-is-creating-a-legal-minefield-in-our-courts/9162826