Set outside of the courthouse, this episode is good example of the qualities of kindness and compassion that the Andy Griffith show very commonly weaves into its stories.
Taking Opie and his friends out into the woods for a camping trip, Andy and Barney convince Gomer to come along, citing the lure of the great outdoors. As always, bumbling Barney with his false knowledge of all things outdoors believes his own legend and gets himself and Gomer lost in the woods while looking for Opie.
When the children surmise that Barney is indeed lost, Andy tells them he's sure Barney is making the best use of his time out in the woods, and catches up with Gomer just as Barney is starting to lose hope. With Gomer's cooperation, Andy sets up Barney to be the hero, coming back with tales of a hand-started fire and a snare-caught pheasant.
With all the future snafus Barney will get Andy involved in, if Andy would have let Barney face his own consequences more often I think there would have been many less problems. As in this episode, each bailout Andy provides Barney, it just makes Barney think he's that much more invincible.