<human>: One of my good friends (32 m) is getting married and has told me he is inviting my ex (32 m) to attend the wedding. We used to all be part of the same group of friends, but I went no contact with my ex over a year ago after he flipped out and began harassing me upon learning I was dating someone new. 

By harassing, I mean he hacked into my FB, erased messages, contacted my new BF with threatening messages, showed up drunk at my apt uninvited, and sent hundreds of messages/calls even after I threatened to go to police. I even got his mom and a lawyer involved as the harassment lasted months and I constantly worried about running into him (we live in a small town). I also had to cut off a few mutual "friends" who turned out to be feeding him information about my whereabouts and my new guy.

So the question is: should I attend my friend's wedding? He already told he me expects to come to this special occasion and that he doesn't want the past to get in the way of me and my BF showing up. He got really upset when I hesitated in giving an answer immediately. But I just feel like the entire situation would be super awkward, and I'm worried seeing my ex would "trigger" him into a new obsessive frenzy (been told he still talks a lot about me).

What is the protocol in this kind of situation? I don't want to have to miss out on my friend's life because of my ex, but I also don't want to run into what could be an unpleasant situation. My friend is still friends with both of us. Is it a bad idea to go? And if I go, what should I do to avoid awkwardness?

Provide a brief overview of the text.
<bot>: Mutual friend invited my stalkerish ex to his wedding, not sure if I should attend, but worried it might jeopardize the friendship if I don't. Help!