handle null file