bool isAllValid = true;
bool isCCRemoved = false; // indicates that at least one of coincidence constraints was removed
while (isAllValid && aConstrIter != myConstraintMap.rend()) {
- if (!aConstrIter->first->data()->isValid()) {
+ if (!aConstrIter->first->data() || !aConstrIter->first->data()->isValid()) {
if (aConstrIter->first->getKind().compare(SketchPlugin_ConstraintCoincidence::ID()) == 0)
isCCRemoved = true;
std::map<boost::shared_ptr<SketchPlugin_Constraint>, Slvs_hConstraint>::reverse_iterator aCopyIter =