It's simple. You drive the car, if it crashes into a stationary object, it's your fault.
Doesn't matter if it's a barrier, stopped truck or debris in your lane.
Should not matter if you were driving it, using cruise control or AP. Its ultimately your responsibility what your car does...