At the shareholder meeting a couple months ago, Elon Musk said the gullwing doors will have proximity and pinch sensors to prevent them from hitting anything. I don't know for sure if he was referring to the first version of Model X, but it seemed like it.