From: vsv Date: Fri, 12 Sep 2014 14:20:08 +0000 (+0400) Subject: Issue #118: Crash on remove part is fixed X-Git-Tag: V_0.4.4~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=acb6de53b1f2772495327f3cceafda0f6b6d5679;p=modules%2Fshaper.git Issue #118: Crash on remove part is fixed --- diff --git a/src/Model/Model_FeatureValidator.cpp b/src/Model/Model_FeatureValidator.cpp index 2f9894dce..dd28371d7 100644 --- a/src/Model/Model_FeatureValidator.cpp +++ b/src/Model/Model_FeatureValidator.cpp @@ -15,6 +15,8 @@ bool Model_FeatureValidator::isValid(const boost::shared_ptr& const std::list& theArguments) const { boost::shared_ptr aData = theFeature->data(); + if (!aData) + return false; if (!aData->isValid()) return false; const std::string kAllTypes = "";