There really is no harm in trying to be friends with your ex, it's where you started in the first place to begin with.
It may be awkward at some point because heck, he/she is your ex but if you both share common friends, then an encounter cannot be avoided.
Just try to be casual whenever you're around her.