Even colliding with another galaxy (which will happen) isnt much of a risk, there is still a lot of space in the space so its unlikely that we are affected. An asteroid from the Oort cloud is far more likely. But it will not end the Earth itself so I guess it doesnt count..