Adding alert in case of null file