Just avoid becoming a criticizer-criti-criti-criticizer and you'll be fine. One friend'll probably bitch about the other one (depending on who dumped who) for a while, so just be understanding and keep contact with the other one to a minimum, over MSN or whatever, and then when your friend gets over it you can start hanging out with your new friend more often.