X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchSolver%2FSketchSolver_Constraint.cpp;h=e44e1390b8b17e078077cd03cf0297fc827c3d23;hb=4224f4dbe7ceaefe74b5d6b79a5840a9f5df2d7a;hp=f831c170b530197631577a77e3955334bff83615;hpb=9d69918c6421ffae24534684847ec8b38741030a;p=modules%2Fshaper.git diff --git a/src/SketchSolver/SketchSolver_Constraint.cpp b/src/SketchSolver/SketchSolver_Constraint.cpp index f831c170b..e44e1390b 100644 --- a/src/SketchSolver/SketchSolver_Constraint.cpp +++ b/src/SketchSolver/SketchSolver_Constraint.cpp @@ -81,6 +81,7 @@ const int& SketchSolver_Constraint::getType(boost::shared_ptr anAttr = theConstraint->data()->attribute(SketchPlugin_Constraint::ATTRIBUTE(indAttr)); + if (!anAttr) continue; switch (typeOfAttribute(anAttr)) { case POINT2D: // the attribute is a 2D point