diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h index 20fd271ec8..b4ce06aa10 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerArc.h @@ -833,6 +833,12 @@ void DSHArcController::addConstraints() } } else { // Valid diagnosis. Must check which constraints may be added. + + // if no curve exists a crash occurs #12755 + if (firstCurve < 0) { + return; + } + auto startpointinfo = handler->getPointInfo(GeoElementId(firstCurve, pos1)); if (x0set && startpointinfo.isXDoF()) {