prevent null pointer crash on HTC Vivid from the camera