From: srn Date: Mon, 6 Feb 2006 12:06:51 +0000 (+0000) Subject: Fixed some bugs X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=687e6742a53ae3cb6aff5e8394e303693c8677cf;p=modules%2Fkernel.git Fixed some bugs --- diff --git a/src/SALOMEDS/SALOMEDS_IParameters.cxx b/src/SALOMEDS/SALOMEDS_IParameters.cxx index 8b1dcafcd..89cb3f6c4 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.cxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.cxx @@ -160,6 +160,7 @@ int SALOMEDS_IParameters::getNbParameters(const string& entry) vector SALOMEDS_IParameters::getEntries() { vector v; + if(!_ap) return v; if(!_ap->IsSet(_AP_ENTRIES_LIST_, PT_STRARRAY)) return v; return _ap->GetStrArray(_AP_ENTRIES_LIST_); } @@ -183,6 +184,7 @@ string SALOMEDS_IParameters::getProperty(const string& name) vector SALOMEDS_IParameters::getProperties() { vector v; + if(!_ap) return v; if(!_ap->IsSet(_AP_PROPERTIES_LIST_, PT_STRARRAY)) return v; return _ap->GetStrArray(_AP_PROPERTIES_LIST_); } diff --git a/src/SALOMEDS/SALOMEDS_IParameters.hxx b/src/SALOMEDS/SALOMEDS_IParameters.hxx index e3096bcc6..17c678dbc 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.hxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.hxx @@ -105,7 +105,7 @@ public: std::vector getProperties(); /*! - Breaks a value string in two parts which is divided %separator. + Breaks a value string in two parts which is divided by %separator. If fromEnd is True the search of separator starts from the end of the string */ std::vector parseValue(const std::string& value, const char separator, bool fromEnd = true);