when file path is null,return object {}