mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-19 08:33:07 +05:00
fix dupming a nil servant
This commit is contained in:
parent
4e647c5275
commit
15f3190af6
@ -224,13 +224,15 @@ namespace SMESH
|
||||
TPythonDump::
|
||||
operator<<(SMESH::SMESH_IDSource_ptr theArg)
|
||||
{
|
||||
if ( CORBA::is_nil( theArg ) )
|
||||
return *this << "None";
|
||||
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
|
||||
SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy();
|
||||
SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
|
||||
if(!aSObject->_is_nil() || CORBA::is_nil( theArg ))
|
||||
if(!aSObject->_is_nil())
|
||||
return *this << aSObject;
|
||||
SMESH::SMESH_Mesh_var mesh = theArg->GetMesh();
|
||||
if ( !theArg->_is_equivalent( mesh) )
|
||||
if ( !theArg->_is_equivalent( mesh ))
|
||||
{
|
||||
SMESH::long_array_var anElementsId = theArg->GetIDs();
|
||||
SMESH::array_of_ElementType_var types = theArg->GetTypes();
|
||||
|
Loading…
Reference in New Issue
Block a user