Salome HOME
Make the invalid selection makes the referenced object in state "invalid arguments"
[modules/shaper.git] / src / Model / Model_ResultConstruction.cpp
index 41e1a9b166a43771fac03ba55775eae2b17f9c5c..11cf883cd60908c0915e0fbf373948d640b0cf24 100644 (file)
@@ -68,7 +68,7 @@ int Model_ResultConstruction::facesNum()
       std::list<std::shared_ptr<GeomAPI_Shape> >::iterator aFIter = aFaces.begin();
       for(; aFIter != aFaces.end(); aFIter++) {
         std::shared_ptr<GeomAPI_Face> aFace(new GeomAPI_Face(*aFIter));
-        if (aFace.get())
+        if (aFace.get() && !aFace->isNull())
           myFaces.push_back(aFace);
       }
     }