TechDraw: [skip ci] Coverity: Dereference null return value

This commit is contained in:
wmayer
2020-09-14 14:04:18 +02:00
parent 716433e55b
commit 11e52fc696

View File

@@ -1085,9 +1085,11 @@ void execLine2Points(Gui::Command* cmd)
for (auto& v2d: vertexNames) {
int idx = DrawUtil::getIndexFromName(v2d);
TechDraw::Vertex* v = baseFeat->getProjVertexByIndex(idx);
Base::Vector3d p = DrawUtil::invertY(v->pnt);
points.push_back(p / scale);
is3d.push_back(false);
if (v) {
Base::Vector3d p = DrawUtil::invertY(v->pnt);
points.push_back(p / scale);
is3d.push_back(false);
}
}
}
//get the 3D points