"The gun could have gone off."
She said Peacock had a significant history of violent offending but was tackling his drug addiction and was in a positive supportive relationship.
There were positive steps Peacock was making, she added.
Peacock was sentenced to four months' home detention with six months' special conditions to follow.
"There has been nothing with violence since 2011 ... because of the promise you hold ... the steps you have taken, the support of your wife and your motivation to change, this is not the normal sentence."
As Peacock walked from the dock the public gallery erupted with loud clapping from a large number of his supporters.