diff --git a/src/GEOMBase/GEOMBase_Helper.cxx b/src/GEOMBase/GEOMBase_Helper.cxx index 114ff2f53..d62fc63cd 100755 --- a/src/GEOMBase/GEOMBase_Helper.cxx +++ b/src/GEOMBase/GEOMBase_Helper.cxx @@ -1088,12 +1088,14 @@ void GEOMBase_Helper::addSubshapesToFather( QMap { if ( !anOp->_is_nil() ) { GEOM::GEOM_Object_var aFatherObj = anOp->GetMainShape( it.data() ); + if ( !aFatherObj->_is_nil() ) { GEOM::GEOM_Object_var aFindedObject = findObjectInFather(aFatherObj, it.key() ); //Add Object to study if its not exist if ( aFindedObject == GEOM::GEOM_Object::_nil() ) GeometryGUI::GetGeomGen()->AddInStudy(GeometryGUI::ClientStudyToStudy(aDStudy), it.data(), it.key(), aFatherObj ); + } } else { //cout << " anOperations is NULL! " << endl;