It's happened to me, more than once. It stung too, but in retrospect wasn't all that big a deal. It's only a big deal if you let it stop you, or slow you down.
One time in particular, it was with a dude I had been friends with for years. We played in several bands together, and I knew the guy had communication issues... but we talked about them. I told him I'd be willing to play in another band with him only if we agreed to communicate openly about everything and anything. Group started as me, him, and an awesome but crazy drummer. I brought another guitar player friend in, and we started gelling together really well in an improvisational type of groove band. Drummer would come up with some really cool stuff, I'd write parts around them, and then he'd play something light years away the next time we rehearsed. We started to bang heads a little, because as good as he was he was really difficult to write with. Anyhow, I went away for 2 weeks, and while away my guitar player buddy called me and asked if I had spoken with my other friend. I told him I hadn't, and then he told me they've got a new bass player. I was blindsided. And pissed. I put a lot of time into that band. I didn't talk to the dude for 2 years after that... BUT, what happened was kind of cool. He called me out of the blue (after that 2 years), and I was willing to hear what he had to say. He apologized profusely and told me that he knew there was a problem with me and the drummer, and thought the problem was me. 3 bass players later he realized the problem was the drummer, and well, he just wanted to let me know that he knew that and made a mistake. I thought it was nice of him. We're still not the best of friends... though he's the guy who introduced me to my wife. I grew a lot in that band, too.
Take the experience for what it's worth. And learn from it. I've played in about 30 other bands since then, and done lots of really cool stuff.