An erroneous Angle Of Attack sensor would not be the cause of a crash (though stated as so in this article) - it could certainly be a contributing factor. The aircraft, from the public evidence so far, was still flyable.
IANAP ... please correct me if I'm wrong here.
Edit: clarified about switch