protect against null file