Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 4ba8a9a2 authored by kraus's avatar kraus
Browse files

Small issue that isn't really relevant because there should always exist at...

Small issue that isn't really relevant because there should always exist at least one element. However it shouldn't crash when there isn't a single element.
parent 4393cc82
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,8 @@ void IndexMap::saveSDDS(double initialPathLength) const {
}
// add row if range of first sector starts after initialPathLength
if (std::get<0>(sectors[0]) > initialPathLength) {
if (sectors.size() > 0 &&
std::get<0>(sectors[0]) > initialPathLength) {
auto tmp = sectors;
sectors = std::vector<std::tuple<double, std::vector<double>, std::string> >(1);
std::get<0>(sectors[0]) = initialPathLength;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment