It was Jimmy's fault for causing the whole mess!
Dan Gallagher might have never met Alex if his friend Jimmy (Stuart Pankin) didn't make a fool of himself at the party. Jimmy tried to come on to Alex even though he was obviously married, and his wife was present. If this never happened, Dan would have just stayed with his wife the entire time, and leave without talking to Alex. Well of course, then there would be no plot and no movie!