From: mpv Date: Thu, 23 Jun 2016 16:36:39 +0000 (+0300) Subject: Fix for crash on changing of creation modes or already created arc X-Git-Tag: V_2.4.0~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9fcabdbcf7d88029e20d9a6876b8323b2c3c6c0c;p=modules%2Fshaper.git Fix for crash on changing of creation modes or already created arc --- diff --git a/src/ModelAPI/ModelAPI_Tools.cpp b/src/ModelAPI/ModelAPI_Tools.cpp index 8d0b8f018..7a7bbecb7 100755 --- a/src/ModelAPI/ModelAPI_Tools.cpp +++ b/src/ModelAPI/ModelAPI_Tools.cpp @@ -359,6 +359,8 @@ bool hasSubResults(const ResultPtr& theResult) void allResults(const FeaturePtr& theFeature, std::list& theResults) { + if (!theFeature.get()) // safety: for empty feature no results + return; const std::list >& aResults = theFeature->results(); std::list >::const_iterator aRIter = aResults.begin(); for (; aRIter != aResults.cend(); aRIter++) {