From 9e0ab432ccaa69bbbc5e846ef2b68c32782c91ad Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 22 Mar 2010 14:48:33 +0000 Subject: [PATCH] 0020799: [CEA] Smesh script fails --- src/SMESH_I/SMESH_DumpPython.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2