diff --git a/src/io/dataset_loader.cpp b/src/io/dataset_loader.cpp index 5ab6572b14b9..3eb19b1fca59 100644 --- a/src/io/dataset_loader.cpp +++ b/src/io/dataset_loader.cpp @@ -291,7 +291,7 @@ Dataset* DatasetLoader::LoadFromFileAlignWithOtherDataset(const char* filename, auto bin_filename = CheckCanLoadFromBin(filename); if (bin_filename.size() == 0) { auto parser = std::unique_ptr(Parser::CreateParser(filename, config_.header, 0, label_idx_, - config_.precise_float_parser, dataset->parser_config_str_)); + config_.precise_float_parser, train_data->parser_config_str_)); if (parser == nullptr) { Log::Fatal("Could not recognize data format of %s", filename); }