App crushed if the camera captured photo is not focused

My app crushes if the image i am taking is not well focused or if i take an image with my hand covering the lense.
This is happening on android only.

Regards