]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2481: Application error when create fillet
authorazv <azv@opencascade.com>
Mon, 21 May 2018 08:46:05 +0000 (11:46 +0300)
committerazv <azv@opencascade.com>
Mon, 21 May 2018 08:46:05 +0000 (11:46 +0300)
Avoid crash when showing deleted constraint

src/PartSet/PartSet_ExternalPointsMgr.cpp

index e6969c8090f22da7333de96f5207e298ad9bc09d..52e0a9d3fdc56065a30c7e4f14a57c3e3476f191 100644 (file)
@@ -101,7 +101,8 @@ QList<std::shared_ptr<ModuleBase_ViewerPrs>> PartSet_ExternalPointsMgr::findCirc
     ResultPtr aResObj = std::dynamic_pointer_cast<ModelAPI_Result>(aObj);
 
     // Do not use Fields and groups in selection in sketcher
-    if ((aResObj->groupName() == ModelAPI_ResultField::group()) ||
+    if (!aResObj.get() ||
+      (aResObj->groupName() == ModelAPI_ResultField::group()) ||
       (aResObj->groupName() == ModelAPI_ResultGroup::group()))
       continue;