Commit 3d26f0e9 authored by Matthias Betz's avatar Matthias Betz
Browse files

fixing a potential issue with 3 points near each other

parent 9430c116
Pipeline #4805 passed with stage
in 3 minutes and 13 seconds
......@@ -189,11 +189,7 @@ public class FeatureMapper extends FeatureWalker {
if (nodesInRange.isEmpty()) {
tree.add(v);
} else {
if (nodesInRange.size() != 1) {
throw new IllegalStateException(
"Found more than one vertex in range of " + v + " this should never happen here");
}
// replace other vertex with neighboring one
// replace other vertex with any neighboring one
Vertex original = nodesInRange.get(0);
lr.setVertex(i, original);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment