If someone is negative and you care for them, take some distance. Possibly communicate to them what their negativity is doing, if this is feasible (some people can't hear it :o). If you don't particularly care for them, then distance yourself completely.