Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Model / Model_FeatureValidator.cpp
index b4b4fb8cc975a6e0a1ea0ee138d3e9a2f5b859e8..dd28371d775ffb84868fe277c2a7d6f6e7ca94b8 100644 (file)
 #include <list>
 #include <boost/shared_ptr.hpp>
 
-bool Model_FeatureValidator::isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature) const
+bool Model_FeatureValidator::isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature,
+  const std::list<std::string>& theArguments) const
 {
   boost::shared_ptr<ModelAPI_Data> aData = theFeature->data();
+  if (!aData)
+    return false;
   if (!aData->isValid())
     return false;
   const std::string kAllTypes = "";