Salome HOME
Refresh menu size after chnges in preferences
[modules/shaper.git] / src / SketchSolver / SketchSolver_Constraint.cpp
index f831c170b530197631577a77e3955334bff83615..e44e1390b8b17e078077cd03cf0297fc827c3d23 100644 (file)
@@ -81,6 +81,7 @@ const int& SketchSolver_Constraint::getType(boost::shared_ptr<SketchPlugin_Const
     {
       boost::shared_ptr<ModelAPI_Attribute> anAttr =
         theConstraint->data()->attribute(SketchPlugin_Constraint::ATTRIBUTE(indAttr));
+      if (!anAttr) continue;
       switch (typeOfAttribute(anAttr))
       {
       case POINT2D: // the attribute is a 2D point