PVS: V522 There might be dereferencing of a potential null pointer 'Py::Vector2d().getCxxObject()'
This commit is contained in:
@@ -708,7 +708,7 @@ PyObject* Curve2dPy::parameter(PyObject *args)
|
||||
PyObject *p;
|
||||
if (!PyArg_ParseTuple(args, "O!", Base::Vector2dPy::type_object(), &p))
|
||||
return 0;
|
||||
Base::Vector2d v = Py::Vector2d(p).getCxxObject()->value();
|
||||
Base::Vector2d v = Py::toVector2d(p);
|
||||
gp_Pnt2d pnt(v.x,v.y);
|
||||
Geom2dAPI_ProjectPointOnCurve ppc(pnt, c);
|
||||
double val = ppc.LowerDistanceParameter();
|
||||
|
||||
Reference in New Issue
Block a user