From 3e13440e76cc4549e74984efa2a18174161825ec Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 22 Sep 2005 13:06:27 +0000 Subject: [PATCH] Fix for bug IPAL10056 : Crash after run Dataflow and creating new file. --- src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx index 0c63992f0..1ce032154 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx @@ -468,7 +468,8 @@ SALOME_ModuleCatalogImpl::GetComponent(const char* name) ParserComponent *C_parser = NULL; ParserPathPrefixes *pp = NULL; - SALOME_ModuleCatalog::Acomponent_ptr compo = NULL; + //mkr : fix for bug IPAL10056 + SALOME_ModuleCatalog::Acomponent_ptr compo = SALOME_ModuleCatalog::Acomponent::_nil(); C_parser = findComponent(s); if (C_parser) { @@ -489,7 +490,6 @@ SALOME_ModuleCatalogImpl::GetComponent(const char* name) // return NULL object if(MYDEBUG) MESSAGE("Component with name " << name << " not found in catalog"); - compo = NULL; } return compo; -- 2.39.2