]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #118: Crash on remove part is fixed
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 12 Sep 2014 14:20:08 +0000 (18:20 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 12 Sep 2014 14:20:08 +0000 (18:20 +0400)
src/Model/Model_FeatureValidator.cpp

index 2f9894dced86249bc335504808f999e26c1255a2..dd28371d775ffb84868fe277c2a7d6f6e7ca94b8 100644 (file)
@@ -15,6 +15,8 @@ bool Model_FeatureValidator::isValid(const boost::shared_ptr<ModelAPI_Feature>&
   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 = "";