diff --git a/include/just_gtfs/just_gtfs.h b/include/just_gtfs/just_gtfs.h index 2fe89b1..70b02e1 100644 --- a/include/just_gtfs/just_gtfs.h +++ b/include/just_gtfs/just_gtfs.h @@ -426,7 +426,7 @@ inline Result CsvParser::read_row(std::map & obj) if (!getline(csv_stream, row)) return {ResultCode::END_OF_FILE, {}}; - if (row == "\r") + if (row.empty() || row == "\r") return ResultCode::OK; const std::vector fields_values = split_record(row);