As a former NASA employee (contractor) I can assure you NASA is looking at the problem. And IIRC several experiments are being conducted (in pack, solar wind, gravity tug). The problem is identifying a threat long before it becomes an unsolvable problem and NASA has launched at least one satellite to do just that. Just hope the space rock does not approach from behind the Sun.
Trust me, when it comes its gonna be YOUR fault.