Skip to content
Snippets Groups Projects
Commit eac4e36f authored by Franck Dary's avatar Franck Dary
Browse files

Fixed printForDebug : don't call stoi on empty cell

parent b81700d2
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ void Config::printForDebug(FILE * dest) const ...@@ -146,7 +146,7 @@ void Config::printForDebug(FILE * dest) const
std::string toPrintCol = colContent; std::string toPrintCol = colContent;
try try
{ {
if (getColName(i) == headColName && toPrintCol != "_") if (getColName(i) == headColName && toPrintCol != "_" && !toPrintCol.empty())
if (toPrintCol != "0") if (toPrintCol != "0")
toPrintCol = getAsFeature(idColName, std::stoi(toPrintCol)); toPrintCol = getAsFeature(idColName, std::stoi(toPrintCol));
} catch(std::exception & e) {util::myThrow(fmt::format("toPrintCol='{}' {}", toPrintCol, e.what()));} } catch(std::exception & e) {util::myThrow(fmt::format("toPrintCol='{}' {}", toPrintCol, e.what()));}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment