Skip to content
Snippets Groups Projects
Commit 37f6cbc5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix test on val.empty() in ExchangeOnelabParameter

parent ab1038c9
No related branches found
No related tags found
No related merge requests found
......@@ -984,7 +984,12 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
std::map<std::string, std::vector<std::string> > &copt)
{
#if defined(HAVE_ONELAB)
if(!_onelabClient || val.empty()) return;
if(!_onelabClient) return;
if(val.empty()){
Msg::Error("No value to exchange with ONELAB");
return;
}
std::string name;
if(copt.count("Name"))
......@@ -1097,7 +1102,7 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
std::map<std::string, std::vector<std::string> > &copt)
{
#if defined(HAVE_ONELAB)
if(!_onelabClient || val.empty()) return;
if(!_onelabClient) return;
std::string name;
if(copt.count("Name"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment