Salome HOME
Fix problems reported by Christophe in mail 31.10.2018
[modules/shaper.git] / src / GeomValidators / GeomValidators_DifferentShapes.cpp
index 69a981be699f7741b1e34a6091e1d5dc344c0afb..e030c284e0cef28e6185e55d682a1fbb5c85a610 100644 (file)
@@ -171,5 +171,7 @@ bool GeomValidators_DifferentShapes::isAttrShapesEqual(const AttributePtr& theAt
   }
   GeomShapePtr aOtherTypedShape = GeomAPI_Tools::getTypedShape(anOtherShape);
 
+  if (!aTypedShape.get())
+    return !aTypedShape.get() && !aOtherTypedShape.get();
   return aTypedShape->isEqual(aOtherTypedShape);
-}
\ No newline at end of file
+}