From: dmv Date: Mon, 22 Mar 2010 14:48:33 +0000 (+0000) Subject: 0020799: [CEA] Smesh script fails X-Git-Tag: V5_1_4a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e0ab432ccaa69bbbc5e846ef2b68c32782c91ad;p=modules%2Fsmesh.git 0020799: [CEA] Smesh script fails --- diff --git a/src/SMESH_I/SMESH_DumpPython.cxx b/src/SMESH_I/SMESH_DumpPython.cxx index 44d42e0e5..629a7d8f1 100644 --- a/src/SMESH_I/SMESH_DumpPython.cxx +++ b/src/SMESH_I/SMESH_DumpPython.cxx @@ -228,7 +228,7 @@ namespace SMESH 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()) + if(!aSObject->_is_nil() || CORBA::is_nil( theArg )) return *this << aSObject; SMESH::long_array_var anElementsId = theArg->GetIDs(); return *this << anElementsId;