Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Fix for empty changeset or uid
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Feb 13, 2024
1 parent e02ddd1 commit dca2e7d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/raw/queryraw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,14 @@ QueryRaw::getWaysByNodesRefs(std::string &nodeIds) const
way->addTag(key, val);
}
}
way->uid = (*way_it)[4].as<long>();
way->changeset = (*way_it)[5].as<long>();
auto uid = (*way_it)[4];
if (!uid.is_null()) {
way->uid = (*way_it)[4].as<long>();
}
auto changeset = (*way_it)[5];
if (!changeset.is_null()) {
way->changeset = (*way_it)[5].as<long>();
}
ways.push_back(way);
}
return ways;
Expand Down

0 comments on commit dca2e7d

Please sign in to comment.