Salome HOME
IPAL21668 Call of Edit Group leads to Crash.
authordmv <dmv@opencascade.com>
Thu, 8 Apr 2010 07:52:18 +0000 (07:52 +0000)
committerdmv <dmv@opencascade.com>
Thu, 8 Apr 2010 07:52:18 +0000 (07:52 +0000)
src/SMESHGUI/SMESHGUI_GroupDlg.cxx

index 9fc6d36fee479e4ae8ad6ce454cce26a29711a51..0afb5763baa50f7af2e8c856e2534eeda0faca35 100644 (file)
@@ -590,7 +590,8 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup,
     if (!aGroupShape->_is_nil())
     {
       _PTR(SObject) aGroupShapeSO = aStudy->FindObjectID(aGroupShape->GetStudyEntry());
-      aShapeName = aGroupShapeSO->GetName().c_str();
+      if ( aGroupShapeSO )
+        aShapeName = aGroupShapeSO->GetName().c_str();
     }
     myGeomGroupLine->setText( aShapeName );
     myNameChanged = true;