LPS-51162 Although file will never be null here, we will include the check for consistancy.