A Virginia man has been convicted of indecent exposure after prosecutors said he stood naked inside his house as a 7-year-old boy and his mother walked by.

The mother and child allegedly observed the defendant, 29-year-old Erick Williamson, first through a doorway and again through a window that had no drapes, MyFoxDC reported.

Williamson, the father of a 5-year-old, argued in court Friday that he should be free to go au naturel inside his home. But a judge agreed with prosecutors who argued Williamson's actions showed he intended to make himself visible to the pair as they walked to school along a path outside his home in October.

Williamson's arrest received national attention and spurred debate about whether someone should be subject to arrest for exposure from inside his own home.

He received only a suspended jail sentence and no fine, but still intends to appeal.

Click here for more on this story from MyFoxDC.com.