Fix scan coverity issues:

CID 184350:  Null pointer dereferences
This commit is contained in:
wmayer
2018-11-20 15:11:43 +01:00
parent 11da78f582
commit fa5b47df16

View File

@@ -1725,16 +1725,12 @@ int SketchObject::fillet(int GeoId1, int GeoId2,
// add arc to sketch geometry
int filletId;
if (arc) {
Part::Geometry *newgeo = arc;
filletId = addGeometry(newgeo);
if (filletId < 0) {
delete arc;
return -1;
}
}
else
Part::Geometry *newgeo = arc;
filletId = addGeometry(newgeo);
if (filletId < 0) {
delete arc;
return -1;
}
if (trim) {
auto selectend = [](double intparam, double refparam, double startparam) {