]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Regression in coincidence constraint
authorazv <azv@opencascade.com>
Fri, 25 Jul 2014 07:41:27 +0000 (11:41 +0400)
committerazv <azv@opencascade.com>
Fri, 25 Jul 2014 07:41:27 +0000 (11:41 +0400)
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