This, in cases like this the police will handle the case with utmost safety, unless the offender has reason to know it's you, then there's nothing to fear. And let's also be fair, the creeps who expose themselves in this way don't usually turn violent, it's a voyeur fetishism, not a violent one...