He also received name suppression.
Both were opposed by police prosecutors.
Judge Bridget Mackintosh said it had been a "relatively unpleasant scenario" which showed neither party at their best.
"It could be described as an overheated domestic dispute which ultimately had no physical consequences for any of the parties," Judge Mackintosh said.
A conviction may have had a negative effect on the accused's working life, and the two parties were working through their issues.
"It does seem to me, at the end of the day, weighing up the situation, that the consequences of a conviction for this particular charge would outweigh the seriousness of the offending," she said.
Name suppression was granted to protect the victim.